MCQs
Total Questions : 64
| Page 6 of 7 pages
Answer: Option D. -> Compilation error
Register data type stores in CPU. So it has not any memory address. Hence we cannot write &a.
Answer: Option A. -> 1234 1234
Answer: Option C. -> 1234 1234
Answer: Option B. -> 1 2 4 8
Address + 1 = next address
Answer: Option C. -> stdio.h and stddef.h
The macro "NULL" is defined in locale.h, stddef.h, stdio.h, stdlib.h, string.h, time.h, and wchar.h.
Answer: Option D. -> 1235 1234
Answer: Option B. -> 776 777
Answer: Option B. -> Address Address
&*p = &*(&i) //since p = &i
Since * and & always cancel to each other.
i.e. *&a = a
so *&p = p which store address of integer i
&*p = &*(&i) //since p = &i
= &(*&i)
= &i
So second output is also address of i
Answer: Option C. -> 556 554 555
Answer: Option B. -> 1235 1235