判断大小端 判断大端小端机器 int i = 0X12345678 0X12 0X34 0X56 0X78 大端存储(Big Endian) 按照字符串从左向右的顺序存储 0X78 0X56 0X34 0X12 小端存储(Little Endian) 程序1: