'a' or '$'
'\7' or '\007'
'\xa0' or '\03F'
\a alert (bell) character \b backspace \f formfeed \n newline \r carriage return \t horizontal tab \v vertical tab \\ backslash \? question mark \' single quote \" double quote
Lcharacter-constant to
define a wide character, using a group of characters and
escape codes to form a single multibyte character for alphabets
(Japanese, Chinese, etc) with more than 256 symbols.
'PICT' is packed into a single 32 bit word
1 or 54321
0xbeef or
0XDEAD
07 (which is the same as 7) or
0111 (which is NOT the same as 111)
long constant, like 17l
or 0xFfL
unsigned constant, like
33u
unsigned long constant, like
32767ul
int and increasing from
long to unsigned long
unsigned (which can hold larger values
than int but may have fewer bytes than long)
unsigned (perhaps to reduce ambiguity
on machines with one's complement arithmetic)
int is 16 bits wide and a
long is 32 bits wide, the following ranges would apply:
Range Decimal Octal/Hexadecimal 0 unsigned unsigned 1-32767 int int 32768-65535 long unsigned 65536-2147483647 long long 2147483648-429497295 unsigned long unsigned long 429497296-? ??? ???
3.141593, 0. or .1
1.0e3,
2.593e+7 or 3141593e-6
float constant, like
35.79f
123f is an error, because 123
is not a floating-point constant
long double constant, like
35.79l
double, which should
be the most efficient floating-point datatype