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

a.

while (1) is an infinite loop..

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is int a keyword in c?

559


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1658


What do you mean by a sequential access file?

631


What are the application of void data type in c?

722


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1500






What is the c language function prototype?

649


What is difference between array and structure in c?

583


How to explain the final year project as a fresher please answer with sample project

472


find out largest elemant of diagonalmatrix

1651


Is it possible to have a function as a parameter in another function?

603


Can 'this' pointer by used in the constructor?

617


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1770


Explain union. What are its advantages?

621


What does d mean?

588


How does selection sort work in c?

627