English

What is an infinite loop? - Computer Applications

Advertisements
Advertisements

Questions

What is an infinite loop? 

What is meant by an infinite loop? 

Answer in Brief

Solution

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
  Is there an error in this question or solution?
Chapter 6: Flow of Control - Exercise [Page 139]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 6 Flow of Control
Exercise | Q 4. (i) | Page 139
Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.09 Iterative Constructs in Java
EXERCISES | Q V. 6. (i) | Page 124
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×