热门

最新

红包

立Flag

投票

同城

我的

发布
blush_teng
Blush_teng
4 年前
trueblush_teng

了解代码,了解字节
#include<stdio.h>
int main()
{ printf("%d\n",sizeof(char));
printf("%d\n",sizeof(short));
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(long));
printf("%d\n",sizeof(long long));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(double));
return 0;
}
输出结果
1
2
4
4
8
4
8
了解每种类型语言所占字节可以更好的学习c语言。更好的定位所用语言类型。

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
请教大佬,linux系统(centos)是只能有一位普通用户吗?我之前设了一个普通用户1,后来又设置了一个用户2,2的密码是对的,但是登陆的时候说的无效,请问这是为什么呢?
立即登录