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
Write a program to print factorial of given number without using recursion?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is strcmp in c?
State the difference between x3 and x[3].
Where register variables are stored in c?
Write a Program to find whether the given number or string is palindrome.
Is boolean a datatype in c?
How can you read a directory in a C program?
What is extern variable in c with example?
How was c created?
what is the format specifier for printing a pointer value?
i want to know the procedure of qualcomm for getting a job through offcampus
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is static and auto variables in c?
There seem to be a few missing operators ..