zoukankan      html  css  js  c++  java
  • C/C++中变量类型最值之宏定义

    C/C++ 【climits(limits.h)】

    CHAR_BIT        Number of bits for a char object (byte)                        8

    SCHAR_MIN     Minimum value for an object of type signedchar               -127

    SCHAR_MAX       Maximumvalue for an object of type signed char                     127

    UCHAR_MAX      Maximumvalue for an object of type unsigned char              255

    CHAR_MIN       Minimum value for an object of type char              either SCHAR_MIN or 0

    CHAR_MAX      Maximum value for an object of type char        eitherSCHAR_MAX or UCHAR_MAX

    MB_LEN_MAX     Maximumnumber of bytes in a multibyte character, for any locale    1

    SHRT_MIN        Minimum value for an object of type shortint                  -32767

    SHRT_MAX       Maximum value for an object of type shortint                 32767

    USHRT_MAX       Maximumvalue for an object of type unsigned short int          65535

    INT_MIN           Minimum value for an object of type int                       -32767

    INT_MAX          Maximum value for an object of type int                       32767

    UINT_MAX       Maximum value for an object of type unsignedshort int           65535

    LONG_MIN       Minimum value for an object of type longint                -2147483647

    LONG_MAX      Maximum value for an object of type longint               2147483647

    ULONG_MAX      Maximumvalue for an object of type unsigned int            4294967295

  • 相关阅读:
    C++纯虚函数调用
    C++编译期数据结构 在不同的地方声明全局数组的初始值
    用虚拟机把ubuntu安装到TF卡上
    点击a链接打开第三方页面变成下载页面问题
    SRAM和DRAM的区别
    真值表生成逻辑表达式程序
    大端 小端
    vhdl rising_edge(clk) (clk'event and clk='1')的区别
    ROM、RAM、DRAM、SRAM、FLASH的区别
    同一个主机头的多域名绑定多个ssl证书的方法
  • 原文地址:https://www.cnblogs.com/engineerLF/p/5393159.html
Copyright © 2011-2022 走看看