在C code变量名后冒号 [英] Colons after variable name on C code
本文介绍了在C code变量名后冒号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
什么是'无符号温度:3是指
这是一个参考页的C code样品。
This is C code sample of a reference page.
signed int _exponent:8;
什么是冒号之前'8'的意义和'8'本身?
What's the meaning of the colon before '8' and '8' itself?
推荐答案
这是一个位域。这是只有在结构
定义有效,这意味着该系统将只使用8位的整数。
It's a bitfield. It's only valid in a struct
definition, and it means that the system will only use 8 bits for your integer.
这篇关于在C code变量名后冒号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文