Versions Compared

Key

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

...

Code Block
bgColor#FFcccc
enum { ADULT_AGE=18 };

/* misleading, relationship established when none exists */
enum { ALCOHOL_AGE=ADULT_AGE+3 }; 

Consequently, a programmer performing maintenance on this program may modify the definition for ADULT_AGE but fail to recognize that the definition for ALCOHOL_AGE has also been changed as a consequence.

...

Wiki Markup
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.10, ""Preprocessing directives,"" and Section 5.1.1, ""Translation environment""
\[[Plum 85|AA. C References#Plum 85]\] Rule 1-4

...

            02. Declarations and Initialization (DCL)              DCL09-C. Declare functions that return an errno error code with a return type of errno_t