You are not logged in.
Pages:: 1
#1 2015-09-15 04:24:35
C Language Control Structures Quiz:
C Programming Quizzes C Language Control Structures
Directions:
What will be the output of given program?
Question:
#include<stdio.h>
void main()
{
int a=3;
for(;a;printf("%d ", a--);
}
Option A):
3 2 1 0
Option B):
3 2 1
Option C):
no output
Option D):
infinity loop
Correct Answer is Option B):
3 2 1
You cannot discover the new oceans unless you have the courage to lose the sight of the shore.
Offline
2015-09-15 04:24:35
- Advertisement
- Ads By Google
Re: C Language Control Structures Quiz:
Pages:: 1