Vidyalelo
C Programming · Q162

Pointer

Programming · C Programming · question 162

Q162

Comment on the following C statement. const int *ptr;

A.
You cannot change the value pointed by ptr
Answer
B.
You cannot change the pointer ptr itself
C.
You May or may not change the value pointed by ptr
D.
You can change the pointer as well as the value pointed by it

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board