Chapter 5 Quiz Starting Out With C++ 013

How do you prevent infinite loops?

a. make sure you test at the beginning of the loop
b. make sure something inside the loop changes the test expression to false
c. make sure you have plenty of RAM
d. it is impossible to prevent infinite loops.
e. make sure something inside the loop changes the test expression to true

1 comment:

  1. b. make sure something inside the loop changes the test expression to false

    ReplyDelete