Definition of `int foo() {}` vs `int foo(void) {}` following declaration of `int foo(void);` [duplicate]
问题 This question already has answers here : func() vs func(void) in c99 (4 answers) Closed last month . Note: this is not the same as func() vs func(void) in c99, because the question here specifically asks about the implementation of a zero-argument function following a valid declaration . Should the implementation of a zero-argument include the void keyword? Specifically, does the C standard have anything to say about the implementation of the following two functions? Note that both foo1 and