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 / vaibhav
it's 'b'
becoz for for loop we initialise atleast one statement
| Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
Place the #include statement must be written in the program?
What are actual arguments?
How can I make it pause before closing the program output window?
Explain what is the difference between #include and #include 'file' ?
What is the difference between struct and typedef struct in c?
What is typedf?
If fflush wont work, what can I use to flush input?
What is abstract data structure in c?
Explain how many levels deep can include files be nested?
What is difference between Structure and Unions?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is a constant and types of constants in c?
What is meant by int main ()?
Does free set pointer to null?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?