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 |
In which category does main function belong??
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
Whether there can be main inside another main?If so how does it work?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
how many argument we can pas in in a function
where do we use volatile keyword?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
How to establish connection with oracle database software from c language?
write a program whose output will be- 1 12 123 1234
#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?
What is data structure in c and its types?