Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
Answer Posted / balu
yes.. deepa is right.. all are infinite loops except d. so d
is the answer
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is a lvalue
Do character constants represent numerical values?
What is omp_num_threads?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What does struct node * mean?
What is void c?
What is use of integral promotions in c?
can we change the default calling convention in c if yes than how.........?
List the difference between a "copy constructor" and a "assignment operator"?
What is a wrapper function in c?
What is static memory allocation?
What are two dimensional arrays alternatively called as?
What is switch in c?
What are the scope of static variables?
How can I call fortran?