Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)?
Posted: Wed Jul 13, 2022 7:54 pm
a) int *ptr = &a;
b) int *ptr = &a – &a;
c) int *ptr = a – a;
d) All of the mentioned
b) int *ptr = &a – &a;
c) int *ptr = a – a;
d) All of the mentioned