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 / prem
Hai Deepa,You are Absolutely right.d is the right
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Can one function call another?
What is structure in c explain with example?
What is the difference between array and structure in c?
What is far pointer in c?
Why c is a mother language?
find out largest elemant of diagonalmatrix
What does 1f stand for?
How can I manipulate individual bits?
What is the difference between array and pointer?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is extern variable in c with example?
What is a sequential access file?
What is difference between union All statement and Union?
write a progrmm in c language take user interface generate table using for loop?
What kind of structure is a house?