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 array in C
What is a structure member in c?
how is the examination pattern?
can we implement multi-threads in c.
Why do we use main function?
What are reserved words?
How does struct work in c?
Sir i need notes for structure,functions,pointers in c language can you help me please
what are the facialities provided by you after the selection of the student.
plz let me know how to become a telecom protocol tester. thank you.
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is graph in c?
What is the advantage of a random access file?
Can two or more operators such as and be combined in a single line of program code?
What is a built-in function in C?