Sail E0 Webinar
Question
What is the output of this C code?
void main()
{
int a[3] = {1, 2, 3};
int *p = a;
int *r = &p;
printf("%d", (**r));
}
Options:
A .  1
B .  Compile time error
C .  Address of a
D .  Junk value
Answer: Option B


None.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers