Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: formatting

If control reaches the closing curly brace (}) of a non-void function without evaluating a return statement, using the return value of the function call is undefined behavior 88 . 

This rule is related to MSC01-C. Strive for logical completeness because both guidelines are intended to ensure that programs properly handle all possible conditions.

...