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 |
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.
difference between object file and executable file
Can math operations be performed on a void pointer?
What type is sizeof?
What is page thrashing?
Can you subtract pointers from each other? Why would you?
pascal triangle program
What is the difference between i++ and i+1 ?(in terms of memory)
What does *p++ do?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
write a program to generate address labels using structures?
void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }
5 Answers C DAC, CDAC, Infosys, Wipro,