// 24T3 COMP1511 Week 7 Lecture 1 // Exercise. // Try to read and work out what it will print // before running the code. #include int main(void) { int x = -7; int y = 5; int *ptr1 = &y; int *ptr2 = &x; int z = *ptr1 + y; *ptr2 = z - 1; printf("%d %d %d\n", x, y, z); ptr2 = ptr1; printf("%d %d\n", *ptr1, *ptr2); return 0; }