Which of the following will not help prevent infinite loops?
a. Include braces around the statements in a do…while statement.
b. Ensure that the header of a for or while statement is not followed by a semicolon.
c. If the loop is counter-controlled, the body of the loop should increment or decrement the counter as needed.
d. If the loop is sentinel-controlled, ensure that the sentinel value is input eventually.
a. Include braces around the statements in a do…while statement.
Computer Science & Information Technology
You might also like to view...
________ is a type of display that uses reflected light to display text in black and white in contrast to other types of displays that emit light
A) E-reader B) E-book C) E-paper D) E-commerce
Computer Science & Information Technology
Which of the following commands can be used to find the MAC address of a connecting router?
A. arp B. traceroute C. ping D. ping sweep
Computer Science & Information Technology