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 / deepa
d
| Is This Answer Correct ? | 44 Yes | 2 No |
Post New Answer View All Answers
Can you explain the four storage classes in C?
Should I learn c before c++?
What is pointer and structure in c?
Explain bitwise shift operators?
What is identifier in c?
What is a macro?
How can I write a function that takes a format string and a variable number of arguments?
What is the difference between fread and fwrite function?
What is calloc in c?
Give differences between - new and malloc() , delete and free() ?
Explain what is the difference between a string and an array?
What is ## preprocessor operator in c?
How is a pointer variable declared?
where are auto variables stored? What are the characteristics of an auto variable?
How macro execution is faster than function ?