Sail E0 Webinar
Question

What will be the output of the following program :
#include<stdio.h>
main()
{
int a=555,*ptr=&a,b=*ptr=777;
printf("%d %d",--*&b,*(int *)&b);
}
Options:
A .  Compile Error
B .  776 777
C .  554 555
D .  None of these
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers