Computer Science, asked by durlabhswift0826, 5 months ago

what is an infinite loop? explain with an example.​

Answers

Answered by geetasomeshpatil
0

Answer:

here u go..

Explanation:

An infinite loop (sometimes called an endless loop ) is a piece of coding that lacks a functional exit so that it repeats indefinitely. ... Usually, an infinite loop results from a programming error - for example, where the conditions for exit are incorrectly written.

Answered by officerkiranmalik123
0

Answer:

INFINITE LOOP:

An infinite loop occurs when a condition always evaluates to true. Usually, this is an error. For example, you might have a loop that decrements until it reaches 0.

FOR EXAMPLE:

you might have a loop that decrements until it reaches 0.

Explanation:

An infinite loop (sometimes called an endless loop ) is a piece of coding that lacks a functional exit so that it repeats indefinitely. In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.

Similar questions