169k views
1 vote
When a variable is assigned a number that is too large for its data type, it: A) underflows B) overflows C) reverses polarity D) exceeds expectations E) None of the above

User Agent
by
8.5k points

1 Answer

1 vote

Answer:

B) overflows

Step-by-step explanation:

Integer overflow occurs when the number which is stored in a variable becomes larger than the capacity of the memory it is stored in (i.e., its datatype).

User Martin Wilson
by
7.8k points