Sail E0 Webinar
Question
What will be the output of the following program code?
main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
Options:
A .  5 5 5 5 5
B .  5 4 3 2 1
C .  Infinite Loop
D .  Compilation Error
E .  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