Sail E0 Webinar
Question
What will be the output of the given program?
#include
void main()
{
int i=10;
printf("i=%d", i);
{
int i=20;
printf("i=%d", i);
i++;
printf("i=%d", i);
}
printf("i=%d", i);
}
Options:
A .  10 10 11 11
B .  10 20 21 21
C .  10 20 21 10
D .  10 20 21 20
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

More Questions on This Topic :


Latest Videos

Latest Test Papers