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 %d used for?

0 Answers  


#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,


How can I invoke another program from within a C program?

8 Answers  


What is the condition that is applied with ?: Operator?

0 Answers  


What is difference between structure and union in c?

0 Answers  






What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture, Wipro,


write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4

9 Answers   IBM, NIIT, Winit,


why do some people write if(0 == x) instead of if(x == 0)?

0 Answers  


what is c?

4 Answers   IBM, TCS,


write a own function for strstr

1 Answers   LG Soft,


write a program to interchange the value between two variable without using loop

1 Answers  


i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

2 Answers  


Categories