You are not logged in.

#1 2015-05-25 09:50:54

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Output Of The Program?

Question:
What is the output of the following code?
void main()
{
int i=0;
while(i++<10)
{
if(i<5 && i<9)
continue;
printf("\n%d\t",i);
}
}

Option A):
1 2 3 4 5 6 7 8 9
Option B):
5 6 7 8 9
Option C):
5 6 7 8 9 10
Option D):
6 7 8 9 10

Correct Answer is Option C):
5 6 7 8 9 10


Failure is the first step towards seccess.

2015-05-25 09:50:54

Advertisement
Ads By Google

Re: Output Of The Program?



Board footer