Q52
Find the output of the following program. void main() int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp);
A.
0x1234ABCD, 0x1234ABCD, 10
B.
0x1234ABCD, 0x1234ABCD, 0x1234ABCD
C.
0x1234ABCD, 10, 10
D.
Syntax error
AnswerE.
Runtime error
Answer: Option D
Solution
Answer: Option D
Solution:
&& is logical AND operator and this operator requires two operands.