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

it's 'b'
becoz for for loop we initialise atleast one statement

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array in C

701


What is a structure member in c?

536


how is the examination pattern?

1591


can we implement multi-threads in c.

657


Why do we use main function?

630






What are reserved words?

650


How does struct work in c?

603


Sir i need notes for structure,functions,pointers in c language can you help me please

1941


what are the facialities provided by you after the selection of the student.

1650


plz let me know how to become a telecom protocol tester. thank you.

1738


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1629


What is graph in c?

579


What is the advantage of a random access file?

637


Can two or more operators such as and be combined in a single line of program code?

801


What is a built-in function in C?

784