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


Please Help Members By Posting Answers For Below Questions

Can math operations be performed on a void pointer?

581


Explain what is the difference between text files and binary files?

610


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

619


Disadvantages of C language.

649


Write a code to determine the total number of stops an elevator would take to serve N number of people.

725






Is using exit() the same as using return?

669


What is assignment operator?

620


What are terms in math?

582


define string ?

662


What are the restrictions of a modulus operator?

628


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

706


What is main () in c language?

590


How many types of sorting are there in c?

604


how to write a c program to print list of fruits in alpabetical order?

1784


The __________ attribute is used to announce variables based on definitions of columns in a table?

666