📄 program2_12.c
字号:
/* Program 2.12 Finding the size of a type */
#include <stdio.h>
int main(void)
{
printf("\nVariables 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 float occupy %d bytes", sizeof(float));
printf("\nVariables of type double occupy %d bytes", sizeof(double));
printf("\nVariables of type long double occupy %d bytes", sizeof(long double));
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -