static void Main() { int IntVal = 999999; checked { try { int data = checked(IntVal * IntVal); } catch (OverflowException e) { Console.WriteLine(e); } } }
static void Main() { int IntVal = 999999; checked { try { int data = checked(IntVal * IntVal); } catch (OverflowException e) { Console.WriteLine(e); } } }
Leave a Reply