Which of the following does not initialize ptr to null (assuming variable declaration of a as int p;a=0;?
A. int *ptr = &a;
B. int *ptr = &a – &a;
C. int *ptr = a – a;
D. All of the mentioned
Answer:A
Which of the following does not initialize ptr to null (assuming variable declaration of a as int p;a=0;?
A. int *ptr = &a; B. int *ptr = &a – &a; C. int *ptr = a – a; D. All of the mentioned