前言
博主简介:本人是计算机专业,大二学生。
博客主要记录一些代码,主要是语言语法和数据结构方面。
希望和大家一起学习,一起加油,一起进步!
运行截图
源代码
#include<stdio.h>
int main(void)
{
printf("\tVariables of type char occupy %d bytes",sizeof(char));
printf("\nVariables of type short occupy %d bytes",sizeof(short));
printf("\nVariables of type int occupy %d bytes",sizeof(int));
printf("\nVariables of type long occupy %d bytes",sizeof(long));
printf("\nVariables of type long long occupy %d bytes",sizeof(long long));
printf("\nVariables of type float occupy %d bytes",sizeof(float));
printf("\nVariables of type double occupy %d bytes",sizeof(double));
printf("\nVariables of type long double occupy %d byres",sizeof(long double));
return 0;
}
感谢阅读