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

What’s a signal? Explain what do I use signals for?

601


What is huge pointer in c?

575


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2182


What are valid signatures for the Main function?

697


Explain can you assign a different address to an array tag?

639






What is the use of pointers in C?

612


What are the differences between Structures and Arrays?

601


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2653


Explain can the sizeof operator be used to tell the size of an array passed to a function?

589


What does. int *x[](); means ?

629


Which header file is essential for using strcmp function?

932


What are the advantages and disadvantages of a heap?

700


What are the c keywords?

744


Explain about the constants which help in debugging?

843


How do you override a defined macro?

693