Throw1 OverflowException과 checked키워드 namespace _066_A019_Overflow { class Program { static void Main(string[] args) { Console.WriteLine("int.MaxValue = {0}", int.MaxValue); int x = int.MaxValue, y = 0; y = x + 10; Console.WriteLine("int.MaxValue + 10 = {0}", y); } } } static void Main(string[] args) { Console.WriteLine("int.MaxValue = {0}", int.MaxValue); - int.MaxValue를 출력한다. int.MaxValue는 부호를 갖는 32비트 정수가 표현할 수 있는 최대값으로 2,147,483,.. 2024. 4. 17. 이전 1 다음