arraysiz.c
来自「C/C++使用技巧1001例一书的配套代码」· C语言 代码 · 共 19 行
C
19 行
#include <stdio.h>
void main(void)
{
int scores[100];
float salaries[100];
char string[100];
printf("Bytes used to hold int scores[100] is %d bytes\n",
sizeof(scores));
printf("Bytes used to hold int salaries[100] is %d bytes\n",
sizeof(salaries));
printf("Bytes used to hold char string[100] is %d bytes\n",
sizeof(string));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?