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
What’s a signal? Explain what do I use signals for?
What is huge pointer in c?
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
What are valid signatures for the Main function?
Explain can you assign a different address to an array tag?
What is the use of pointers in C?
What are the differences between Structures and Arrays?
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.
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What does. int *x[](); means ?
Which header file is essential for using strcmp function?
What are the advantages and disadvantages of a heap?
What are the c keywords?
Explain about the constants which help in debugging?
How do you override a defined macro?