...
A similar rule deals with parameter type in a more general sense: DCL07-C. Include the appropriate type information in function declarators.
In C++, foo()
and foo(void)
have exactly the same meaning and effect, so this rule doesn't apply to C+. However, foo(void)
should be declared explicitly instead of foo()
to distinguish it from foo(...)
, which will then take arbitrary parameters.
...