I know that that there's a difference in the following two functions declarations:
int foo1();
int foo2(void);
because that says foo1()
can accept any number of arguments while foo2()
accepts no arguments.
But for the implementation, does the C language spec prefer one of the following?
int foo2() { return 2; }
int foo2(void) { return 2; }
In other words, is it appropriate to include void
in the otherwise empty parameter list?