#include <stdio.h>
#include <string.h>
struct {
unsigned int age : 3;
} Age;
int main( ) {
Age.age = 4;
printf( "Sizeof( Age ) : %d/n", sizeof(Age) );
printf( "Age.age : %d/n", Age.age );
Age.age = 7;
printf( "Age.age : %d/n", Age.age );
Age.age = 8;
printf( "Age.age : %d/n", Age.age );
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265161.html