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
Where are some collections of useful code fragments and examples?
Explain what is a 'locale'?
Difference between Function to pointer and pointer to function
Do you know the use of fflush() function?
Differentiate between new and malloc(), delete and free() ?
What are the advantages of union?
State the difference between x3 and x[3].
Explain the use of fflush() function?
Why void is used in c?
What is the difference between memcpy and memmove?
What is the most efficient way to store flag values?
What is actual argument?
Why c is called procedure oriented language?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
When should structures be passed by values or by references?