Learn C: Special Characters

This entry is part 5 of 7 in the series Learn C

Special or control characters are invisible on the screen. They have special purposes usually to do with cursor movement and are written into an ordinary string or character by typing a backslash character \ followed by some other character.

In the hello example, the special character is “\n”.

These characters are listed below.

Special CharacterDescription
\bbackspace BS
\abeeping sound
\nnew line NL (like pressing return)
\rcarriage return CR (cursor to start of line)
\t
horizontal tab HT
\"double quotes (not all versions)
\'single quote character '
\\backslash character \
Series Navigation<< Learn C: A variation of the first program
Learn C: Beeping sound – “\a” >>