Welcome Guest | Sign in | Register
Loops - Discussion Page For Q.10460 | 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 the following program?
void main(){
int a,b;
a=b=10;
while(a)
{
a=b++<=13;
printf("%d%d",a,b);
}
printf("%d%d",a+10,b+10);

A. 1 11 1 12 1 13 1 14 0 15 a=10 b=25 B. 1 11 1 12 1 13 1 14 0 15 a=10 b=25
C. 1 11 1 12 1 13 1 14 0 15 a=11 b=25 D. 0 11 1 12 1 13 1 14 0 15 a=10 b=25

Answer and Explanation

Answer:1 11 1 12 1 13 1 14 0 15 a=10 b=25

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.