物联网/嵌入式工程师
面向零基础保姆式教学+简历指导+1V1模拟面试+3次内推,助力轻松就业!
请写一个程序,用来输出你电脑上各个数据类型的长度。
参考答案:
#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 可将课程添加到书签
举报