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 use virual function in real time example

1 Answers   CTS, Wipro,


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1 Answers   TCS,


what is the use of pointers

6 Answers   Adobe, GrapeCity,


I need a sort of an approximate strcmp routine?

1 Answers  


Why string is used in c?

1 Answers  


WHAT IS PRE POSSESSORS?

6 Answers   TATA,


Write a program to show the workingof auto variable.

2 Answers   Infotech,


What are qualifiers in c?

1 Answers  


how to write palindrome program?

3 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?

3 Answers  


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1 Answers  


Write a code of a general series where the next element is the sum of last k terms.

1 Answers   Aspiring Minds,


Categories