Advertisements
Advertisements
प्रश्न
What is an infinite loop?
What is meant by an infinite loop?
थोडक्यात उत्तर
उत्तर
The statement within the body of a loop must ensure that the test condition for the loop eventually becomes false; otherwise, the loop will run infinitely. Hence, an infinite loop is called a loop that doesn’t end. This leads to a logical error in the program.
shaalaa.com
Introduction to Flow of Control - Repetition
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?