what is Infinite loop ?
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.1: Basic Loop Structures
Problem 6E
Related questions
Question
what is Infinite loop ?
Expert Solution
Step 1
Infinite loop
- An infinite loop is a sequence of instructions that will continue endlessly.
- The loop will continue unless an external intervention occurs.
- An infinite loop is also known as endless loop.
- It lacks a functional exit so that it repeats indefinitely.
- In order to stop an infinite loop, an exit condition is defined before the loop.
- Here break keyword is used in order to stop the loop.
- Infinite loops caused the entire system to become unresponsive.
- It causes the program to consume all available processor time but can be terminated by the user.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage