Welcome Guest | Sign in | Register
Loops - Discussion Page For Q.10478 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Loops > Questions and Answers

Q: What is the output of following program?
void main(){
int a;
a=1;
while(a<=10){
printf("%d",a);
if(a>3 && a<8)
continue;
a++;
}
printf("%d",a+10);
}

A. 1 2 3 4 5 6 ...................infinite B. 1 2 3 4 5 5...................infinite
C. 1 2 3 4 4 4 ...................infinite D. 1 2 3 4 4 3 ...................infinite

Answer and Explanation

Answer:1 2 3 4 4 4 ...................infinite

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.