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("%p %p", *r, a);
}
Options:
A .  Different address is printed
B .  1   2
C .  Same address is printed.
D .  1   1
Answer: Option C


None.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers