extended Integer Types: __int8, __int16, __int32, __int64

转载自:http://docwiki.embarcadero.com/RADStudio/XE3/en/Int8,_int16,_int32,_int64,_Unsigned_int64,_Extended_Integer_Types

Extended Integer Types: __int8, __int16, __int32, __int64

Go Up to Keywords, Alphabetical Listing Index


Category

Keyword Extensions

Description

You can specify the size for integer types (number of bits occupied in memory).

You must use the appropriate suffix (i16ui32, and so on) using extended integer constants.

Extended integer types

TypeSuffix

in
constants

ExampleStorage

__int8

i8

     __int8 c = 127i8;

8 bits

unsigned __int8

ui8

     unsigned __int8 c = 240ui8;

8 bits

__int16

i16

     __int16 s = 32767i16;

16 bits

unsigned __int16

ui16

     unsigned __int16 s = 64532ui16;

16 bits

__int32

i32

     __int32 i = 123456789i32;

32 bits

unsigned __int32

ui32

     unsigned __int32 i = 223456789ui32;

32 bits

__int64

i64

     __int64 big = 12345654321i64;

64 bits

unsigned __int64

ui64

     unsigned __int64 hugeInt = 1234567887654321ui64;

64 bits



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值