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
How to throw some light on the b tree?
What are disadvantages of C language.
What is the use of a semicolon (;) at the end of every program statement?
Write a program to generate random numbers in c?
Is there sort function in c?
Is c is a middle level language?
what is different between auto and local static? why should we use local static?
When can a far pointer be used?
Tell me about low level programming languages.
can anyone please tell about the nested interrupts?
Describe newline escape sequence with a sample program?
How can I convert a number to a string?
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?
how should functions be apportioned among source files?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......