“Overflow” (Solution)
Answer
Overflow operations with sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, char
throw OverflowException
depending on checked
/unchecked
context (ECMA-334, 11.1.5).
Overflow operations with float
, double
never throw OverflowException
(ECMA-334, 11.1.6).
Overflow operations with decimal
always throw OverflowException
(ECMA-334, 11.1.7).
Last updated
Was this helpful?