Q:

What should be done to prevent changes that may be made to the values pointed by the pointer?

0

What should be done to prevent changes that may be made to the values pointed by the pointer?


  1. Usual pointer can’t change the values pointed
  2. Pointer should be made virtual
  3. Pointer should be made anonymous
  4. Pointer should be made const

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(d).Pointer should be made const

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OBJECTS AND POINTERS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
References to object are same as pointers of objec... >>
<< How can the address stored in the pointer be retri...