md_size.c
来自「该文件包含900个C语言编程的经典例子,供大家学习之用.希望对大家有帮助.」· C语言 代码 · 共 18 行
C
18 行
#include <stdio.h>
void main(void)
{
int box[3][3];
float year_sales[52][5];
char pages[40][60][20];
printf("Bytes to hold int box[3][3] %d bytes\n", sizeof(box));
printf("Bytes to hold float year_sales[52][5] %d bytes\n",
sizeof(year_sales));
printf("Bytes to hold char pages[40][60][20] %ld bytes\n",
sizeof(pages));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?