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 reason of your company position's in india no. 1.
How many types of sorting are there in c?
How can you find out how much memory is available?
What does %c mean in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is the size of array float a(10)?
I have seen function declarations that look like this
How can I trap or ignore keyboard interrupts like control-c?
Explain high-order and low-order bytes.
When should we use pointers in a c program?
What are the header files used in c language?
Does * p ++ increment p or what it points to?
What is meant by int main ()?
What does it mean when a pointer is used in an if statement?
what do you mean by enumeration constant?