What does a colon in a struct declaration mean, such as :1, :7, :16, or :32?

后端 未结 3 643
一整个雨季
一整个雨季 2020-11-22 04:23

What does the following C++ code mean?

unsigned char a : 1; 
unsigned char b : 7;

I guess it creates two char a and b, and both of them sho

3条回答
提交回复
热议问题