需求:写一段代码高数我们当前机
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> int sheck_sys() { int a = 1; return *(char*)&a; } int main() { int ret = sheck_sys(); if (ret == 1) { printf("小端"); } else { printf("大端"); } return 0; }
器的字节序
标签:字节,int,练习,28,sheck,ret,printf From: https://www.cnblogs.com/ayue6/p/17761588.html