#includeint checkCPU(){ union w{ int a; char b; }c; c.a = 1; return (c.b == 1);}int main(){ printf("This CPU is %s\n", checkCPU() ? "little" : "big"); return 0;}
本文共 260 字,大约阅读时间需要 1 分钟。
#includeint checkCPU(){ union w{ int a; char b; }c; c.a = 1; return (c.b == 1);}int main(){ printf("This CPU is %s\n", checkCPU() ? "little" : "big"); return 0;}
转载于:https://www.cnblogs.com/vedic/p/11201620.html