Vidyalelo
C Programming · Q29

Pointer

Programming · C Programming · question 29

Q29

What is the result of the expression *ptr = NULL in C, where ptr is a pointer?

A.
Initialize ptr to 0
B.
Delete the pointer ptr
C.
Set the value pointed to by ptr to NULL
Answer
D.
It's not a valid operation

Answer: Option C

Solution

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