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
List a few unconditional control statement in c.
What is a list in c?
Where register variables are stored in c?
What is a union?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
The statement, int(*x[]) () what does in indicate?
How do I use void main?
What is the auto keyword good for?
Explain what will the preprocessor do for a program?
Why header file is used in c?
How are variables declared in c?
What is difference between stdio h and conio h?
Do pointers take up memory?
Explain the meaning of keyword 'extern' in a function declaration.
What are the differences between new and malloc in C?