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

If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

0 Answers  


What is main function in c?

0 Answers  


Tell us bitwise shift operators?

0 Answers  


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


How can I write a function analogous to scanf?

0 Answers  


What are the types of data structures in c?

0 Answers  


What are the types of functions in c?

0 Answers  


How can I convert integers to binary or hexadecimal?

2 Answers  


How does free() know explain how much memory to release?

0 Answers  


write a program to find out number of on bits in a number?

17 Answers   Huawei, Microsoft,


What will be the outcome of the following conditional statement if the value of variable s is 10?

0 Answers  


How to access or modify the const variable in c ?

16 Answers   HCL, HP,


Categories