a. enclose the inner loop entirely within the outer loop in a nested loop
b. increment the loop control variable inside of the loop body
c. validate data to ensure values are the correct data type or that they fall within an acceptable range
d. Neglect to initialize the loop control variable prior to entering the loop body
Answer:- D. Neglect to initialize the loop control variable prior to entering the loop body
Failing to allocate preliminary values (initialization) to the loop control variables (as well as other variables) is a shared tricky most programmers frequently make. This is significant since the loading is used at the start of a loop to initialize the loop.
Leave a Reply