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 / shruti

a.

while (1) is an infinite loop..

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do shell structures work?

563


What is the use of a conditional inclusion statement in C?

594


What is structure in c explain with example?

629


What is oops c?

602


Is fortran still used today?

597






‎How to define structures? · ‎

620


praagnovation

1774


What is %d called in c?

752


Dont ansi function prototypes render lint obsolete?

601


How can I run c program?

677


What does typedef struct mean?

653


What are multibyte characters?

639


What is the use of gets and puts?

595


What is difference between array and pointer in c?

534


What is size of union in c?

578