测试大小端
来源:互联网 发布:托福网络课程视频 编辑:程序博客网 时间:2024/06/02 13:36
# include <stdio.h># include <string.h># include <assert.h># include <stdlib.h>int main(void){int a = 0xfafbfcfd;unsigned char *p = (unsigned char *)&a;printf("*p = %x\n", *p);return 0;}
# include <stdio.h># include <string.h># include <assert.h># include <stdlib.h>union {int a;char b;} test;int main(void){test.a = 1;if (test.b == 1)printf("Little_endian\n");elseprintf("Big_endian");return 0;}
0 0
- 大小端测试
- 大小端测试
- 程序测试大小端
- 测试大小端模式
- 大小端测试函数.
- 测试机器大小端
- 测试大小端
- 大小端测试程序
- cpu大小端测试
- 大小端测试函数
- 大小端测试方法
- 测试计算机大小端
- 测试大小端
- 如何测试系统大小端
- 大小端模式测试程序
- 测试一个机器大小端
- 系统大小端的测试
- 系统大小端测试程序
- ds 1.4 心存疑惑的兰
- MardDown左边输入端原始样式
- 数据结构之队列(C语言实现)
- 如何计算产生SPWM所需要的占空比
- OSG阴影
- 测试大小端
- 怎样辨别一个处理器的架构?
- 贝塞尔曲线初探
- JS 导出excel---1
- C语言模拟试卷一
- web存储 实现本地存储
- CSDN中文字排版小技巧
- EL表达式中获取list长度
- CPP与C的不同与同