Literals
|
75 // int 75u // unsigned int 75l // long 75ul // unsigned long
3.14159 // 3.14159 // default double 6.02e23 // 6.02 x 10^23 1.6e-19 // 1.6 x 10^-19 3.0 // 3.0
3.14159L // long double 6.02e23f // float
'z' 'p' "Hello world" "How do you do?"
\n
newline \r
carriage return \t
tab \v
vertical tab \b
backspace \f
form feed (page feed) \a
alert (beep) \'
single quote (') \"
double quote (") \?
question mark (?) \\
backslash (\)
For example:
1
2
3
4
'\n' '\t' "Left \t Right" "one\ntwo\nthree"
More at link.
No comments:
Post a Comment