大端小端判定 (C语言)

int checkCPU( )
{ 
{ 
union w 
{ 
int a; 
char b; 
} c; 
c.a = 1; 
return(c.b ==1);
} 
} 

  

原文地址:https://www.cnblogs.com/lzhenf/p/2406965.html