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
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Explain how can I manipulate strings of multibyte characters?
Explain why can’t constant values be used to define an array’s initial size?
Is r written in c?
What is time complexity c?
Write a program of advanced Fibonacci series.
What is a const pointer in c?
What does it mean when the linker says that _end is undefined?
What is default value of global variable in c?
Give differences between - new and malloc() , delete and free() ?
What is the significance of c program algorithms?
What are pragmas and what are they good for?
Who developed c language?
Explain modulus operator.
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]