answersLogoWhite

0


Best Answer

That kind of loop is referred to as an Infinite Loop. It occurs when the exit conditions can never be met or when the programmer fails to supply an exit.

For example:

Do while (1>0)

(that will loop forever because 1 is always greater than 0)

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

Yes! Such a loop might look like these examples, which all do the same thing (effectively), in different languages:

BASIC:

10 HOME

20 GOTO 10

PHP:

for (x=0; x>1; x++) { x--; }

The PHP example could be easily ported into most languages with very little effort. Essentially, it creates a loop for which the exit condition is never met. This is rarely a good idea.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

yes

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you call the loop that never ends?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A program with a loop that never ends is called an?

Infinite loop.


What do you call a play that never ends?

What do you call a number that never ends


What happens if you create a loop in C program that never ends?

then your program will never ends, too unless you pressing the ctrl+c or kill it through your os. can i know the purpose of you creating the loop that never ends? is it just a mistake or are you doing it on purpose?


Differences between finite and infinite loop?

A finite loop executes a specific number of times based on its condition, while an infinite loop runs indefinitely without cessation. Finite loops have a predetermined endpoint, while infinite loops continue without a defined stopping condition until manually interrupted. Improperly written infinite loops can lead to system crashes or unresponsive programs.


What do you call a decimal that never ends?

A non-terminating decimal.


What is a twist loop rein?

Twisted loop reins are simply reins that have a twisted loop at the ends where the reins attach to the bit.


What do you call a scarf with no ends?

A scarf without ends is called an infinity scarf because it is a continuous loop without distinct ends. It can be worn by looping it around the neck without any need to tie it or wrap it like a traditional scarf.


How do you beat zombie mode call of duty 5?

You don't, it never ends.


Is there a line in ones everyday lives that never ends?

Most people call it the horizon.


How many rounds are there in the nazi zombie game on call of duty world at war?

it never ends


What is difference between for loop statement and do while statement in c language?

The for loop has an initializer, an end condition, a loop expression, and a body. The initializer always runs. If the end condition is not satisified, the loop ends or never starts. The loop expression runs at the end of each iteration. Note that the body of a for loop can run no times. The do while statement has a body and an end condition. The body is executed, and then the end condition determines if the loop will iterate. Like the for loop, the loop expression runs at the end of each iteration. Note that the body of a do while loop will run at least one time.


What is the primary purpose of a loop?

to prevent loose ends