c语言:常量与变量
摘要:#define SOMETHING 100 const int SOMETHING 100 在之后的代码中,SOMETHING会被替换成100 两者区别:1.const 确定了数据类型,是在运行时做处理的 2.#define 程序在编译的时候,所有SOMETHING都会被替换成常量
阅读全文
posted @ 2020-03-03 20:45
posted @ 2020-03-03 20:45
posted @ 2020-03-01 20:24
posted @ 2020-03-01 16:23