Vidyalelo
C Programming · Q242

Pointer

Programming · C Programming · question 242

Q242

Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)?

A.
int *ptr = &a;
Answer
B.
int *ptr = &a - &a;
C.
int *ptr = a - a;
D.
All of the mentioned

Answer: Option A

Solution

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