The code below is supposed to add the numbers from 1 up to and including 10. It does not calculate the correct sum. The problem is caused by a(n) ________ error.
```
int sum = 0;
for (int count = 1; count < 10; count++)
sum += count;
```
a) syntax
b) compilation
c) requirement
d) off-by-one
e) testing
e) testing
Computer Science & Information Technology
You might also like to view...
What problems with templates have you encountered, or have you been warned about by your instructor, with regard to your compiler’s template facility?
What will be an ideal response?
Computer Science & Information Technology
What should be in a disaster recovery plan that relates to computers??
What will be an ideal response?
Computer Science & Information Technology