Sail E0 Webinar
Question
What is the output of this C code?
int
main()
{
int *ptr, a = 10;
ptr = &a;
*ptr += 1;
printf("%d,%d/n", *ptr, a);
}
Options:
A .  10,10
B .  10,11
C .  11,10
D .  11,11
Answer: Option D


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