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
Which header file is used for clrscr?
how many errors in c explain deply
Explain output of printf("Hello World"-'A'+'B'); ?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Explain indirection?
What is the difference between near, far and huge pointers?
What is #define size in c?
Explain what will the preprocessor do for a program?
Why pointers are used in c?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is queue in c?
How we can insert comments in a c program?
What are the advantages of using linked list for tree construction?
What is include directive in c?
What is use of #include in c?