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


Please Help Members By Posting Answers For Below Questions

how to build a exercise findig min number of e heap with list imlemented?

1614


Difference between constant pointer and pointer to a constant.

619


What is the meaning of typedef struct in c?

601


What is the difference between class and object in c?

588


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

1434






explain what is an endless loop?

615


How can I make sure that my program is the only one accessing a file?

685


What are identifiers c?

569


Is c pass by value or reference?

600


Do you know the use of fflush() function?

605


Process by which one bit pattern in to another by bit wise operation is?

617


Why is python slower than c?

611


Explain what does the format %10.2 mean when included in a printf statement?

786


Explain what is #line used for?

610


difference between native and cross compilers

1673