You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-14 06:11:26
C Language Function Program Code:
C Programming Quizzes C Language Function
Directions:
What will be the output of the following program code?
Question:
main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
Option A):
Infinite Loop
Option B):
5 4 3 2 1
Option C):
Compilation Error
Option D):
5 5 5 5 5
Correct Answer is Option B):
5 4 3 2 1
Failure is the first step towards seccess.
Offline
2015-09-14 06:11:26
- Advertisement
- Ads By Google
Re: C Language Function Program Code:
\n
Pages:: 1