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
how to build a exercise findig min number of e heap with list imlemented?
Difference between constant pointer and pointer to a constant.
What is the meaning of typedef struct in c?
What is the difference between class and object in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
explain what is an endless loop?
How can I make sure that my program is the only one accessing a file?
What are identifiers c?
Is c pass by value or reference?
Do you know the use of fflush() function?
Process by which one bit pattern in to another by bit wise operation is?
Why is python slower than c?
Explain what does the format %10.2 mean when included in a printf statement?
Explain what is #line used for?
difference between native and cross compilers