物联网/嵌入式工程师
重磅升级:新增硬件电路设计与实战,让你软硬通吃,同级PK无敌!行业风口、政策倾斜,新晋热门高薪不内卷!0基础一站式就业完整路径,抢占先发优势!
请写一个程序,用来输出你电脑上各个数据类型的长度。
参考答案:
#include <stdio.h> int main(int argc,char **argv) { printf("char: %d\n", sizeof(char)); printf("unsigned char: %d\n", sizeof(unsigned char)); printf("short: %d\n", sizeof(short)); printf("unsigned short: %d\n", sizeof(unsigned short)); printf("int: %d\n", sizeof(int)); printf("unsigned int: %d\n", sizeof(unsigned int)); printf("long: %d\n", sizeof(long)); printf("unsigned long: %d\n", sizeof(unsigned long)); printf("long long: %d\n", sizeof(long long)); printf("unsigned long long: %d\n", sizeof(unsigned long long)); return 0; }
请验证,完成请求
由于请求次数过多,请先验证,完成再次请求
打开微信扫码自动绑定
绑定后可得到
使用 Ctrl+D 可将课程添加到书签
举报