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
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
What are keywords c?
What is equivalent to ++i+++j?
How can you invoke another program from within a C program?
What is c preprocessor mean?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is a keyword?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is || operator and how does it function in a program?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is putchar() function?
What is the size of enum in bytes?
What are register variables in c?
simple program of graphics and their output display
Which programming language is best for getting job 2020?