Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...