Q:

In our grading example in this section, what would happen if we used unsigned int as the type for quiz1

0

In our grading example in this section, what would happen if we used unsigned int as the type for quiz1?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The standard guarantees the minimum size of `int` is 16 bits, and the minimum size of `long` is 32 bits. Since the teacher has 30 students in a class, which needs at least 30 bits, `int` would be not enough to hold all the results.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now