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 throw some light on the b tree?

600


What are disadvantages of C language.

638


What is the use of a semicolon (;) at the end of every program statement?

759


Write a program to generate random numbers in c?

654


Is there sort function in c?

570






Is c is a middle level language?

591


what is different between auto and local static? why should we use local static?

633


When can a far pointer be used?

584


Tell me about low level programming languages.

634


can anyone please tell about the nested interrupts?

1670


Describe newline escape sequence with a sample program?

642


How can I convert a number to a string?

601


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

770


how should functions be apportioned among source files?

617


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1735