Question 3
Back to Exercise
If p holds the address of x, which expression gives the value of x?
- A &p
- B p
- C *p Correct
- D **p
Correct Answer: Option C
*p dereferences p: it goes to the address p holds and reads the int there, which is x. p is the address itself and &p is the address of the pointer variable.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!