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 are the various types of control structures in programming?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What functions are used in dynamic memory allocation in c?
Why c language is called c?
Is fortran still used today?
What are different types of variables in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is void pointers in c?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What are the different properties of variable number of arguments?
What is the difference between #include
What is the function of volatile in c language?
Why doesnt the call scanf work?
What are called c variables?
What is a far pointer in c?