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 / ramya
its d.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Explain what are preprocessor directives?
Why c is called free form language?
Explain what is gets() function?
What is the use of pointers in C?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
what is a function method?give example?
What does void main return?
What are the data types present in c?
What is dynamic variable in c?
What is the difference between null pointer and wild pointer?
What is the difference between functions abs() and fabs()?
Explain how do you determine a file’s attributes?
State two uses of pointers in C?
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 ].
Is that possible to add pointers to each other?