里面结构变量声明声明冒号运算符 [英] Colon operator in a variable declaration statement inside struct
本文介绍了里面结构变量声明声明冒号运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
什么是'无符号温度:3是指
块引用>结构示例{
INT X:2;
烧焦Y:4;
};什么是冒号运算符在上面code呢?
解决方案这是用来指定位字段。该字段的大小的比特给出。布局是编译器特定的。
Possible Duplicate:
What does 'unsigned temp:3' means
struct sample{ int x :2; char y :4; };
What does the colon operator do in the above code?
解决方案It is used to specify bit fields. The size of the field is given in bits. The layout is compiler-specific.
这篇关于里面结构变量声明声明冒号运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文