void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}
Answers were Sorted based on User's Feedback
Answer / sabir
this program execute at one both while are working becouse
a++ increase value after while statement that by both are
execute at once
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / 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 |
Answer / venkatapradeep774
ans:5...i need an explaination for this tat how it will be 5.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dheerendra
it gives error,
because any loop can't be terminated by ';'
Is This Answer Correct ? | 0 Yes | 3 No |
What is the difference between malloc() and calloc()?
What is scanf_s in c?
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
what is the definition of storage classes?
Are enumerations really portable?
What is realloc in c?
Explain what standard functions are available to manipulate strings?
what is the difference between #include<stdio.h> and #include"stdio.h" ?
Who invented b language?
what is difference between #include<stdio.h> and #include"stdio.h"
What is a far pointer in c?