C/C++の宿題片付けます 138代目

このエントリーをはてなブックマークに追加
935デフォルトの名無しさん
>>933
>>721
http://pc12.2ch.net/test/read.cgi/tech/1269438098/101 で述べられ済み。

ISO/IEC 9899TC2
6.7.5.3 Function declarators (including prototypes)
14
An identifier list declares only the identifiers of the parameters of the function. An empty
list in a function declarator that is part of a definition of that function specifies that the
function has no parameters.
とあり、関数の定義のときには、空のリストは no parameters である。
すなわち引数が void の場合と等価であり、int main() は int main(void) と同じ。