unchecked int overflow
using System;
class IntegerOverFlowConst
{
static void Main()
{
const ushort MAXUSHORT = 65535;
const ushort ONE = 1;
unchecked
{
ushort total = (short)MAXUSHORT + ONE;
}
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
|