sizeof 的作用 利用 sizeof 关键字可以统计数据类型 / 变量所占内存大小 sizeof 的语法 语法:sizeof(数据类型 / 变量) nt a = 10; printf("%d\n", sizeof(a));