what is an infinite loop? explain with an example.
Answers
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.
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.