什么是"扩展整型"? [英] What are "extended integer types"?
本文介绍了什么是"扩展整型"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这本书我读报价:
符号的字符,签短整型,符号整数,签订长整型,签订了长整型
被称为标准符号整型
unsigned char型,unsinged短整型,无符号整型,unsigned long int类型,unsinged得到long long int,_Bool
被称为标准符号
整型
- 在除了标准的整数类型,C99标准允许实现定义的扩展整型后,双方签字和
无符号。例如,编译器可能会提供签名和未签名
128位的整数类型。
块引用>我和第3点的问题。这些是什么扩展整数类型?任何的例子吗?
解决方案扩展的整数类型的一个例子是
__的Int64
64位有符号整数通过微软的Visual定义的类型C.虽然这种类型的显然是它无法为INT
,获得整型,在旧版本的MSVC长整型
,也不得到long long int
。 (MSVC添加在此期间为支持得到long long int
)Quoting from the book I'm reading:
signed char, signed short int, signed int, signed long int, signed long long int
are called standard signed integer typesunsigned char, unsinged short int, unsigned int, unsigned long int, unsinged long long int, _Bool
are called standard unsigned integer types- In addition to the standard integer types, the C99 standard allows implementation-defined extended integer types, both signed and unsigned. For example, a compiler might be provide signed and unsigned 128-bit integer types.
I've problem with 3rd point. What are these "extended integer types"? Any examples?
解决方案An example of the extended integer type is the
__int64
64-bit signed integer type defined by MS Visual C. While this type is obviously an integral type, in older versions of MSVC it could not be obtained asint
,long int
, norlong long int
. (MSVC added support forlong long int
in the meantime.)这篇关于什么是"扩展整型"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文