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 extern variable in c with example?
plz let me know how to become a telecom protocol tester. thank you.
Is c++ based on c?
Who developed c language?
Tell me what is null pointer in c?
How can I recover the file name given an open stream?
Why is c platform dependent?
What is main () in c?
Write a code to remove duplicates in a string.
What does printf does?
Where are c variables stored in memory?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What's a good way to check for "close enough" floating-point equality?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is realloc in c?