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
Does sprintf put null character?
What is atoi and atof in c?
If null and 0 are equivalent as null pointer constants, which should I use?
What are the three constants used in c?
Why we use void main in c?
what will be maximum number of comparisons when number of elements are given?
What are types of functions?
How can I access an I o board directly?
Which is better oop or procedural?
Is array a primitive data type in c?
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
Simplify the program segment if X = B then C ← true else C ← false
Differentiate between functions getch() and getche().
Write a code to remove duplicates in a string.
How to write a multi-statement macro?