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 / deepa

d

Is This Answer Correct ?    44 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a linked list in c.

649


What are Macros? What are its advantages and disadvantages?

651


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

688


What do you understand by friend-functions? How are they used?

653


Difference between goto, long jmp() and setjmp()?

712






How do you determine the length of a string value that was stored in a variable?

652


What is data types?

643


What is c standard library?

694


What is meant by initialization and how we initialize a variable?

590


What are the two forms of #include directive?

646


FILE PROGRAMMING

1781


What is volatile variable in c with example?

590


Is sizeof a keyword in c?

586


What is a constant and types of constants in c?

606


When should structures be passed by values or by references?

588