Your Ad Here

Thursday, August 14, 2008

Backslash Character Constants

Enclosing character constants in single quotes works for most printing characters. A few, however,
such as the carriage return, can't be. For this reason, C includes the special backslash character
constants, shown in Table 2-2, so that you may easily enter these special characters as constants.
These are also referred to as escape sequences. You should use the backslash codes instead of their
ASCII equivalents to help ensure portability.

No comments: