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
Explain what does a function declared as pascal do differently?
Explain what is a 'locale'?
What are the advantages and disadvantages of pointers?
Why do we use namespace feature?
What are formal parameters?
What is the value of h?
Write a program to show the change in position of a cursor using c
What is the significance of an algorithm to C programming?
Where are local variables stored in c?
Distinguish between actual and formal arguments.
Lists the benefits of c programming language?
How many levels of indirection in pointers can you have in a single declaration?
praagnovation
What is difference between %d and %i in c?
Explain function?