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

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

Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)? mcq and its answer is provided on this page.

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

Que. Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)?
a. a) int *ptr = &a
b. b) int *ptr = &a – &a
c. c) int *ptr = a – a;
d. d) All of the mentioned
Answer: a
Explanation : None.


Comments