Vidyalelo
C Programming · Q13

Pointer

Programming · C Programming · question 13

Q13

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

A.
Initialize ptr to 0
Answer
B.
Delete the pointer ptr
C.
Set ptr to a random address
D.
It's not a valid operation

Answer: Option A

Solution

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