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
Why cant I open a file by its explicit path?
What is scanf_s in c?
If null and 0 are equivalent as null pointer constants, which should I use?
Why are algorithms important in c program?
Differentiate between null and void pointers.
Are negative numbers true in c?
What does void main return?
Explain a file operation in C with an example.
Explain how can you be sure that a program follows the ansi c standard?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is the difference between procedural and declarative language?
What is the use of putchar function?
I need testPalindrome and removeSpace
#include
Why should I use standard library functions instead of writing my own?