第一种,使用位段:#include <stdio.h>struct data{ unsigned int a:3; unsigned int b:2; unsigned int c:3;};int main(){ struct data abc; unsigned char* s = (unsigned char*) &abc; *s = 0x99; if(abc.a == 1) printf("you are using big_endian machine\n"); else printf("you ...