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
How does selection sort work in c?
What are operators in c?
What is main function in c?
What is the difference between #include
How many levels of pointers can you have?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Can a pointer be null?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is a newline escape sequence?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is getche() function?
What header files do I need in order to define the standard library functions I use?
How can you avoid including a header more than once?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?