gpt4 book ai didi

c - 什么是 "extended integer types"?

转载 作者:太空狗 更新时间:2023-10-29 16:34:23 25 4
gpt4 key购买 nike

引用我正在阅读的书:

  1. signed char, signed short int, signed int, signed long int, signed long long int are called standard signed integer types
  2. unsigned char, unsigned short int, unsigned int, unsigned long int, unsigned long long int, _Bool are called standard unsignedinteger types
  3. In addition to the standard integer types, the C99 standard allows implementation-defined extended integer types, both signed andunsigned. For example, a compiler might be provide signed and unsigned128-bit integer types.

我对第三点有疑问。这些“扩展整数类型”是什么?有例子吗?

最佳答案

扩展整数类型是作为扩展提供的特定于实现的整数类型。因为几乎所有关于此类扩展的内容都是实现定义的,所以标准不能对它们说太多。但是,C++09 提案提供了一个框架,用于以不干扰符合标准的程序的行为的方式实现此类扩展。

你应该引用this ,其中涵盖了有关扩展整数类型的所有内容。

关于c - 什么是 "extended integer types"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13403600/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com