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 / balu
yes.. deepa is right.. all are infinite loops except d. so d
is the answer
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What are the 3 types of structures?
What is the difference between char array and char pointer?
Which is best linux os?
Explain what is a 'locale'?
What is n in c?
What is this pointer in c plus plus?
What are derived data types in c?
What is the difference between procedural and declarative language?
Do you know what are bitwise shift operators in c programming?
What functions are used in dynamic memory allocation in c?
Why double pointer is used in c?
Can you return null in c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is meant by type specifiers?
What is use of pointer?