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

how to find the size of the data type like int,float without using the sizeof operator?

13 Answers  


Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above

5 Answers   TCS, Accenture,


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?

1 Answers   Wipro,


Write a program to print distinct words in an input along with their count in input in decreasing order of their count

0 Answers  


c program to manipulate x=1!+2!+3!+...+n! using recursion

1 Answers   TCS,






what is the coding of display the factorial of a number using array and function?

1 Answers  


Write a program in C to convert date displayed in gregorian to julian date

0 Answers   Wipro, HCL,


what is the use of ~ in c lang?????

3 Answers  


Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.

3 Answers   SilverKey,


what are advantages of U D F?

1 Answers   Google,


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   HCL, TCS, Infosys, Infotech, Accenture, Vertex, Vimukti Technologies, ABS, SoftSolve, Software India,


What will happen when freeing memory twice

2 Answers  






Categories