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
What is the use of f in c?
Explain what is a stream?
Why do we use main function?
What do you mean by dynamic memory allocation in c?
What is meant by errors and debugging?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is the modulus operator?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Why clrscr is used after variable declaration?
Explain zero based addressing.
Explain null pointer.
Does free set pointer to null?
Write a simple code fragment that will check if a number is positive or negative.
Where define directive used?
Can you add pointers together? Why would you?