Mega Code Archive

 
Categories / C Tutorial / Printf Scanf
 

Printf() Escape Sequences

Sequence Meaning \aBeeps the speaker \bBackspace (moves the cursor back, no erase) \fForm feed (ejects printer page; may clear the screen on some computers) \nNewline, like pressing the Enter key \rCarriage return (moves the cursor to the beginning of the line) \tTab \vVertical tab (moves the cursor down a line) \\The backslash character \'The apostrophe \"The double-quote character \?The question mark \0The "null" byte (that's 0, not the letter O) \OnnA character value in octal (base 8) \xnnnA character value in hexadecimal (base 16)