Wednesday, January 19, 2011

1.4 Symbolic Constants

  • A #define line gives a symbolic name or symbolic constant to be particular string of characters:
    • #define     name     replacement-text
  • Any occurrence of name will be replaced by corresponding replacement text
  • name has the same form as a variable name: sequence of letters and digits that begins with a letter
  • replacement-text can be any sequence of characters or numbers

No comments:

Post a Comment