LearnFrenzy
Sign in Take a free test

Pointers · Pointer Basics MCQ · Question 3

Which operator gives the value at a pointer's address? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Popular