📄 sizeof.c
字号:
#include <stdio.h>
#include <stdlib.h>
void main()
{
double temp[8];
char a;
int b;
long c;
float d;
double e;
puts("Variable sizes:");
printf("Size of the array = %i\n",sizeof(temp));
printf("Size of a character = %i\n",sizeof(a));
printf("Size of an integer = %i\n",sizeof(b));
printf("Size of a long = %i\n",sizeof(c));
printf("Size of a float = %i\n",sizeof(d));
printf("Size of a double = %i\n",sizeof(e));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -