1 Star 0 Fork 0

20145324 / Linux20145324

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
p49.c 402 Bytes
一键复制 编辑 原始数据 按行查看 历史
20145324 提交于 2016-09-28 19:44 . week3practice
#include<stdio.h>
void main()
{
short sx=-12345;
unsigned short usx=sx;
int x=sx;
unsigned ux=usx;
int byte_pointer;
printf("sx=%d:\t",sx);
show_bytes((byte_pointer)&sx,sizeof(short));
printf("usx=%u:\t",usx);
show_bytes((byte_pointer)&usx,sizeof(unsigned short));
printf("x=%d:\t",x);
show_bytes((byte_pointer)&x,sizeof(int));
printf("ux=%u:\t",ux);
show_bytes((byte_pointer)&ux,sizeof(unsigned));
}
1
https://gitee.com/SJZGM10/Linux20145324.git
git@gitee.com:SJZGM10/Linux20145324.git
SJZGM10
Linux20145324
Linux20145324
master

搜索帮助