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 C++
increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {
Is there any possibility to create customized header file with c programming language?
i want to have a program to read a string and print the frequency of each character and it should work in turbo c
n=7623 { temp=n/10; result=temp*10+ result; n=n/10 }
which type of question asked from c / c++ in interview.
Is that possible to store 32768 in an int data type variable?
What is the meaning of typedef struct in c?
write a program to add two numbers of any size.....(remember any size)
what is a c-language.what is do.
Differentiate between the expression “++a” and “a++”?
Explain enumerated types in c language?