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 / krishna kumar

ya deepa is ryt.
true here equals zero...which is false.
so the correct answer is D.

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sprintf put null character?

589


What is atoi and atof in c?

610


If null and 0 are equivalent as null pointer constants, which should I use?

573


What are the three constants used in c?

538


Why we use void main in c?

584






what will be maximum number of comparisons when number of elements are given?

1404


What are types of functions?

557


How can I access an I o board directly?

618


Which is better oop or procedural?

619


Is array a primitive data type in c?

571


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

636


Simplify the program segment if X = B then C ← true else C ← false

2575


Differentiate between functions getch() and getche().

614


Write a code to remove duplicates in a string.

623


How to write a multi-statement macro?

616