c#中数据类型和和预定义数据类型有什么区别

解决方案 »

  1.   

    C#支持8个预定义整数类型名    称
     CTS 类 型
     说    明
     范    围
     
    sbyte
     System.SByte
     8位有符号的整数
     –128~127 (–27~27–1)
     
    short
     System.Int16
     16位有符号的整数
     –32 768~32 767 (–215~215–1)
     
    int
     System.Int32
     32位有符号的整数
     –2 147 483 648~2 147 483 647(–231~231–1)
     
    long
     System.Int64
     64位有符号的整数
     –9 223 372 036 854 775 808~9 223 372 036 854 775 807(–263~263–1)
     
    byte
     System.Byte
     8位无符号的整数
     0~255(0~28–1)
     
    ushort
     System.Uint16
     16位无符号的整数
     0~65535(0~216–1)
     
    uint
     System.Uint32
     32位无符号的整数
     0~4 294 967 295(0~232–1)
     
    ulong
     System.Uint64
     64位无符号的整数
     0~18 446 744 073 709 551 615(0~264–1)