void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}

Answer Posted / madhavi

1<=1, a=2 (true)(first while)
2<=2,a=3 (true)(second while)
3<=3,a=4 (false)(second while)

4<=1,a=5 (false)(first while)

the loops are in nesting ,the second while is the loop body
of the first while loop

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

755


What are keywords c?

603


What is equivalent to ++i+++j?

644


How can you invoke another program from within a C program?

619


What is c preprocessor mean?

795






An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

658


What is a keyword?

748


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

914


What is || operator and how does it function in a program?

632


What will be the outcome of the following conditional statement if the value of variable s is 10?

768


What is putchar() function?

638


What is the size of enum in bytes?

591


What are register variables in c?

575


simple program of graphics and their output display

1470


Which programming language is best for getting job 2020?

608