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 / prem

Hai Deepa,You are Absolutely right.d is the right

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does a function declared as pascal do differently?

646


Explain what is a 'locale'?

587


What are the advantages and disadvantages of pointers?

584


Why do we use namespace feature?

588


What are formal parameters?

664






What is the value of h?

597


Write a program to show the change in position of a cursor using c

585


What is the significance of an algorithm to C programming?

598


Where are local variables stored in c?

573


Distinguish between actual and formal arguments.

593


Lists the benefits of c programming language?

600


How many levels of indirection in pointers can you have in a single declaration?

601


praagnovation

1784


What is difference between %d and %i in c?

698


Explain function?

667