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
What is function definition in c?
What is malloc and calloc?
how should functions be apportioned among source files?
What is the difference between printf and scanf in c?
What is call by value in c?
What is the difference between procedural and functional programming?
how we can make 3d venturing graphics on outer interface
What is realloc in c?
Explain union. What are its advantages?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is identifier in c?
Is swift based on c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
How do you print an address?
How do you declare a variable that will hold string values?