//sbyte 최소값 -128
Console.WriteLine("{0}", sbyte.MinValue);
//short 최소값 -32768
Console.WriteLine("{0}", Int16.MinValue);
Console.WriteLine("{0}", short.MinValue);
//int 자료형의 최솟값 -2147483648
Console.WriteLine("{0}", int.MinValue);
Console.WriteLine("{0}", Int32.MinValue);
//int 자료형의 최댓값 2147483647
Console.WriteLine("{0}", Int32.MaxValue);
Console.WriteLine("{0}", int.MaxValue);
//long 최소값 -9223372036854775808
Console.WriteLine("{0}", long.MinValue);
Console.WriteLine("{0}", Int64.MinValue);
'강의복습 > MS 공인강사 출신의 C# 프로그래밍 언어 10.0 Part 1 - 기초' 카테고리의 다른 글
문자열 보간법 (0) | 2022.06.13 |
---|---|
Nullable 형식 (0) | 2022.06.09 |
플레이스홀더(콘솔출력시 출력형태) (0) | 2022.06.09 |
주석문과 전처리기 지시문 (0) | 2022.06.09 |
C# 기본문법 (0) | 2022.06.09 |