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

it's 'b'
becoz for for loop we initialise atleast one statement

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1501


What is a program flowchart and how does it help in writing a program?

652


Write a program to print "hello world" without using a semicolon?

587


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

660


difference between object file and executable file

6086






given post order,in order construct the corresponding binary tree

2312


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

623


Write a Program to accept different goods with the number, price and date of purchase and display them

5428


What is an operator?

652


What is action and transformation in spark?

585


How many types of functions are there in c?

578


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5784


Is fortran faster than c?

572


Can math operations be performed on a void pointer?

581


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1895