【发布时间】:2013-09-16 05:12:04
【问题描述】:
6.7.6.3 Function declarators (including prototypes)
这部分标准处理'Identifier list' 和'Parameter type list'。
首先,函数声明(不是定义)与函数原型相同。我对么?如果这是正确的,那么为什么标准会说'including prototypes'?
我无法理解'Identifier list' 和'Parameter type list' 在函数声明方面的区别。
int fun(); // Declaration
int fun(int x)// Definition, but the signature doesn't match and it works.
{ return x; }
谁能解释一下,我很困惑?
【问题讨论】:
-
我面临的问题是,我无法遵循标准中给出的解释。有点难懂语言。