using System;
class IntegerOverFlowConst
{
static void Main()
{
const ushort MAXUSHORT = 65535;
const ushort ONE = 1;
unchecked
{
ushort total = (short)MAXUSHORT + ONE;
}
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok