c语言int型是什么意思,在c语言中,int代表什么意思

2楼

2019-10-04 19:13

它是一种数据类型。代表整形类的数据类型

3楼

2019-10-04 18:04

int

The keyword int specifies a 32-bit signed integer on 32-bit platforms. On 16-bit platforms, the keyword int is an optional keyword that can accompany the keywords small, short, and long.

[ signed | unsigned ] integer-modifier [ int ] declarator-list;

Parameters

integer-modifier

Specifies the keyword small, short, long, hyper, __int3264, or __int64,which selects the size of the integer data. On 16-bit platforms, the size qualifier must be present.

declarator-list

Specifies one or more standard C declarators, such as identifiers, pointer declarators, and array declarators. (Function declarators and bit-field declarations are not allowed in structures that are transmitted in remote procedure calls. These declarators are allowed in structures that are not transmitted.) Separate multiple declarators with commas.

Remarks

Integer types are among the base types of the interface definition language (IDL). They can appear as type specifiers in typedef declarations, general declarations, and function declarators (as a function-return-type specifier and as a parameter-type specifier). For the context in which type specifiers appear, see Interface Definition (IDL) File.

If no integer sign specification is provided, the integer type defaults to signed.

DCE IDL compilers do not allow the keyword signed to specify the sign of integer types. Therefore, this feature is not available when you use the MIDL compiler /osf switch.

Microsoft does not recommend the use of __int3264 for remoting if it can be avoided. Please see the topic on __int3264 for more information regarding it's use and limitations.

Examples

signed short int i = 0;

int j = i;

typedef struct

{

small int i1;

short i2;

unsigned long int i3;

} INTSIZETYPE;

HRESULT MyFunc([in] long int lCount);

4楼

2019-10-04 17:54

它是一种数据类型。代表整形类的数据类型

整型值可以用十进制,十六进制或八进制符号指定,前面可以加上可选的符号(- 或者 +)。

如果用八进制符号,数字前必须加上 0(零),用十六进制符号数字前必须加上 0x。

int 的长度与机器字长相同,16位的编译器上int长16位,32位的编译器上int长32位

我要举报

如果感觉以上信息为低俗/不良/侵权的信息,可以点下面链接进行举报,我们会做出相应处理,感谢你的支持!

大家都在看

推荐资讯

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值