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 C?

6 Answers  


triangle number finding program...

1 Answers   HCL,


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  


we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

4 Answers   Google,


What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 Answers   Amazon, Qualcomm,






Write a C program to check a number even or odd, without using any relational, arithmetic operator and any loops.

1 Answers  


How can I call a function, given its name as a string?

4 Answers   ABC Telecom,


how can we print  hellow world programme without using semicolon

3 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

18 Answers   TCS, Intel, HCL, Acropolis,


hi any body pls give me company name interview conduct "c" language only

0 Answers  


program that accepts amount in figures and print that in words

2 Answers   Infosys, Wipro, Lovely Professional University,






Categories