char st:2表示什么意思啊?
typedef struct s1{
// int x1 ;
char x3:1 ;
char x4:3 ;
、、 int x2:3;
}tstA1 ;
tstA1 tsta1 ;
char x3:1 ;这表示什么意思啊?
在main中打印时:
printf("the size of tsta1 is %d \n" , sizeof(tsta1)) ; 结果为:1
修改后:
typedef struct s2{
int x1:2 ;
char x3:1 ;
char x4:3 ;
、、 int x2:3;
}tstA2 ;
tstA2 tsta2 ;
printf("the size of tsta2 is %d \n" , sizeof(tsta2)) ; 结果为:8
如何解释啊?
谢谢!
// int x1 ;
char x3:1 ;
char x4:3 ;
、、 int x2:3;
}tstA1 ;
tstA1 tsta1 ;
char x3:1 ;这表示什么意思啊?
在main中打印时:
printf("the size of tsta1 is %d \n" , sizeof(tsta1)) ; 结果为:1
修改后:
typedef struct s2{
int x1:2 ;
char x3:1 ;
char x4:3 ;
、、 int x2:3;
}tstA2 ;
tstA2 tsta2 ;
printf("the size of tsta2 is %d \n" , sizeof(tsta2)) ; 结果为:8
如何解释啊?
谢谢!
...全文
相关推荐
Oracle to_char函数的使用方法
Oracle to_char函数的功能是将数值型或者日期型转化为字符型,下面就为您详细介绍Oracle to_char函数的使用,希望对您能有所帮助。 Postgres 格式化函数提供一套有效的工具用于把各种数据类型(日期/时间,int,float,numeric)转换成格式化的字符串以及反过来从格式化的字符串转换成原始的数据类型。 注意:所有格式化函数的第二个参数是用于转换的模板。 表 5-7. 格式化函数 函数 返回 描述 例子 to_char(timestamp, text) text 把 timestamp 转换成 string to_char(timestamp ‘no
ST7567串口程序
ABB-PLC-ST语言编程手册
ST语言是一种纯文本的编辑方式, 相对于其他的自动化编程语言,它是一种自由的纯文本编辑方式。ST的语法结构与中级结构编程语言C语言相似。
st7549t并口驱动程序
PIC18LF4550控制点阵LCD显示(驱动IC:ST7549T,并口方式)
stm32驱动12832液晶屏(ST7565R控制器)
stm32驱动12832液晶屏(ST7565R控制器)


