【发布时间】:2012-07-16 16:24:45
【问题描述】:
这是真的吗?
1.如果我们单独使用 const 修饰符,它默认为 int。例如,
const size = 10;
表示
const int size =10;
2.ANSI C 不需要 const 的初始化器;如果没有给出,它会将 const 初始化为 0。例如,
const int i;
表示
const i = 0;
请给出答案。根据ANSI标准
【问题讨论】:
-
你参加考试还是什么?
-
=在const size 10中发生了什么?您的问题似乎是关于缺少的int。为什么你也删除了=?