Discussion :: Testing New
-
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 |
E.
Runtime error |
Answer : Option D
Explanation :
&& is logical AND operator and this operator requires two operands.
Be The First To Comment