what is infinite loop explain with an example
Answers
Answered by
2
Answer:
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. ... This is a silly example, but it's common for infinite loops to accidentally occur.
Answered by
0
Explanation:
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. ... This is a silly example, but it's common for infinite loops to accidentally occur.
Similar questions