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
Explain the difference between getch() and getche() in c?
What is the argument of a function in c?
In a header file whether functions are declared or defined?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is wrong with this code?
Tell me when is a void pointer used?
What is the difference between null pointer and wild pointer?
What is mean by data types in c?
Tell me the use of bit field in c language?
How to Throw some light on the splay trees?
How can I sort a linked list?
How can I manipulate strings of multibyte characters?
Explain how do you convert strings to numbers in c?
How to explain the final year project as a fresher please answer with sample project
Is array name a pointer?