c语言max()头文件,C语言头文件stdint.h

stdint.h头文件在C语言中定义了不同宽度的整数类型,包括精确宽度、最小宽度、最快宽度和最大宽度的整数类型。这些类型提供了固定的位宽,如int8_t、uint16_t等,方便在不同平台上进行位宽一致的编程。此外,还定义了对应的宏来指定类型的限制和构造适当的常量。
摘要由CSDN通过智能技术生成

[CX]

a4c26d1e5885305701be709a3d33442f.pngSome

of the functionality described on this reference page extends the

ISO C standard. Applications shall define the

appropriate feature test macro (see the System Interfaces volume of

IEEE Std 1003.1-2001,Section

2.2, The Compilation Environment) to enable the visibility of

these symbols in this header.

a4c26d1e5885305701be709a3d33442f.png

Theheader shall declare sets

of integer types having specified widths, and shall define

corresponding sets of macros. It shall also define macros that

specify limits of integer types corresponding to types defined in

other standard headers.

Note:

The "width" of an integer type is the number of bits used to

store its value in a pure binary system; the actual type may use

more bits than that (for example, a 28-bit type could be stored in

32 bits of actual storage). AnN-bit signed type

has values in the range

-2N-1or

1-2N-1to

2N-1-1, while anN-bit unsigned

type has values in the range 0 to

2N-1.

Types are defined in the following categories:

Integer types having certain exact widths

Integer types having at least certain specified widths

Fastest integer types having at least certain specified

widths

Integer types wide enough to hold pointers to objects

Integer types having greatest width

(Some of these types may denote the same type.)

Corresponding macros specify limits of the declared types and

construct suitable constants.

For each type described herein that the implementation provides,

theheader shall declare

thattypedefname

and define the associated macros. Conversely, for each type

described herein that the implementation does not provide,

theheader shall not declare

thattypedefname,

nor shall it define the associated macros. An implementation shall

provide those types described as required, but need not provide any

of the others (described as optional).

Integer

Types

Whentypedefnames

differing only in the absence or presence of the

initialuare defined, they shall

denote corresponding signed and unsigned types as described in the

ISO/IEC 9899:1999 standard, Section 6.2.5; an

implementation providing one of these corresponding types shall

also provide the other.

In the following descriptions, the symbolNrepresents an unsigned

decimal integer with no leading zeros (for example, 8 or 24, but

not 04 or 048).

Exact-width integer types

Thetypedefna

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值