Question: 9(4 pts) Write a program that introduces int variables x and y and int* pointer variables p and q. Set x to 2, y to

9(4 pts) Write a program that introduces int variables x and y and int* pointer variables p and q. Set x to 2, y to 8, p to the address of x, and q to the address of y. Then print the following information: (a) The address of x and the value of x. pt) (b) The value of p and the value of *p. (1 pt) c) The address of y and the value of y. (1 pt) (d) The value of q and the value of *q. (1 pt) (e) The address of p (not its contents!. ( pt) (1) The address of q (not its contents!). ( pt) Print the program and the outputs of the program on a separate sheet of paper and attach that to this homework. Please do not use more than 1 page (two sided is ok, but one sided is preferred)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
