C Programming

Controlling the cursor position
The following characters, placed after the \ character in a printf() statement, have the following effect.

Modifier Meaning
\b backspace
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\" double quote
\' single quote
\<enter> line continuation
\nnn nnn = octal character value
\0xnn nn = hexadecimal value (some compilers only)

printf("\007Attention, that was a beep!\n");


©Copyright B Brown. 1984-1999. All rights reserved.