Question: Assuming you had the code: int a = 10; where a is stored in the memory location 0x300. [6pts]a. Write a statement to declare a

Assuming you had the code: int a = 10; where a is stored in the memory location 0x300. [6pts]a. Write a statement to declare a pointer variable called p that points to a memory location that only holds integers.b. Write a statement that stores the address of a in p. Use the & operator.c. Write a statement that changes the contents of a to 20 using the variable name.d. Write a statement that changes the contents of a to 50 using the pointer name.e. If the pointer was stored in the address 0x200, what is the output of the statements below?printf(%p, &p);printf(%p, p);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!