diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2013-08-31 19:29:25 -0500 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2013-08-31 19:29:25 -0500 |
commit | 411d9a9813e8c7174f35540198b6dadc8c0b665c (patch) | |
tree | 49efa4f840505d672f56f5ff8090f886a120b5f9 /c.html.markdown | |
parent | 8caf3768fb4a1f0fa14ca4765e7f168534c7cd8f (diff) |
Add more escape sequences to C.
Diffstat (limited to 'c.html.markdown')
-rw-r--r-- | c.html.markdown | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown index 2a828ab7..4764c38e 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -21,14 +21,21 @@ Multi-line comments look like this. They work in C89 as well. */ //Special characters: +'\a' // alert (bell) character '\n' // newline character '\t' // tab character (left justifies text) '\v' // vertical tab -'\f' // new page +'\f' // new page (formfeed) '\r' // carriage return '\b' // backspace character '\0' // null character. Usually put at end of strings in C lang. // hello\n\0. \0 used by convention to mark end of string. +'\\' // backspace +'\?' // question mark +'\'' // single quote +'\"' // double quote +'\xhh' // hexadecimal number. Example: '\xb' = vertical tab character +'\ooo' // octal number. Example: '\013' = vertical tab character //print formatting: "%d" // integer |