While(1)
{

}
when this loop get terminate is it a infinite loop?

Answers were Sorted based on User's Feedback



While(1) { } when this loop get terminate is it a infinite loop?..

Answer / raj

it is infinite loop
while(1)
{
break;
}

Is This Answer Correct ?    15 Yes 3 No

While(1) { } when this loop get terminate is it a infinite loop?..

Answer / mahi

it is infinite loop.and it will terminate if we will call
break statement in loop.

Is This Answer Correct ?    11 Yes 3 No

While(1) { } when this loop get terminate is it a infinite loop?..

Answer / senthilmanikandan

It is finite loop...
if loop reaches Stack Overflow then it will automatically
terminated....

Is This Answer Correct ?    8 Yes 1 No

While(1) { } when this loop get terminate is it a infinite loop?..

Answer / vignesh1988i

only break statement can do it

Is This Answer Correct ?    6 Yes 3 No

While(1) { } when this loop get terminate is it a infinite loop?..

Answer / hemas

yes, it is infinite loop.
it will terminate after stack overflow occur.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

what is the difference between 123 and 0123 in c?

0 Answers  


What is the Lvalue and Rvalue?

2 Answers  


Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }

2 Answers   ADITI,


Is that possible to store 32768 in an int data type variable?

0 Answers  


What are the advantages of c preprocessor?

0 Answers  






printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


What are types of preprocessor in c?

0 Answers  


What is break statement?

0 Answers  


What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 Answers  


What is the explanation for cyclic nature of data types in c?

0 Answers  


What is variable initialization and why is it important?

0 Answers  


To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  


Categories