【发布时间】:2012-04-07 18:14:39
【问题描述】:
可能重复:
What is useful about this C syntax?
C variable declarations after function heading in definition
What weird C syntax is this?
我正在尝试理解一些代码,它有如下内容:
int getr(fget)
FILE *fget;
{
/* More declarations and statements here */
return (1);
}
以上和以下有什么区别:
int getr(fget)
{
FILE *fget;
/* More declarations and statements here */
return (1);
}
如果是,它们有何不同?
【问题讨论】:
-
@Paul R. 你是对的,这是那个问题的副本。是否可以编辑该问题的标题以使其更具描述性?
标签: c curly-braces