- A A const pointer cannot be dereferenced, while a pointer to a const can
- B A const pointer cannot be reassigned to point to a different memory location, while a pointer to a const can
- C A const pointer points to a const object, while a pointer to a const can point to a non-const object
- D A const pointer and a pointer to a const are equivalent in C
- Share this MCQ
Answer:
C
Share this MCQ
Answer: C
Explanation: In C, a const pointer points to a const object, which means that the object it points to cannot be modified through the pointer. On the other hand, a pointer to a const can point to a non-const object, but it cannot be used to modify that object.
Click me to Read more Question & Answer of Fundamentals of C LanguageShare this MCQ