Home »
MCQs »
C++ MCQs
Which of the following is the correct way to get value from pointer 'ptr'?
138. Which of the following is the correct way to get value from pointer "ptr"?
- ptr
- &ptr
- *ptr
- All the above
Answer: C) *ptr
Explanation:
The "*ptr" is the correct way to get the value from the pointer ptr.