Question

Suppose a program contains the code
for (i = 1; i < = 10; i++) {
n[i] = 0;
}
Which statement about this code must be true?
a) It contains an off-by-one error.
b) It contains a syntax error.
c) It is initializing the first 10 elements of an array.
d) It is initializing successive elements of an array.

Answer

This answer is hidden. It contains 3 characters.