Add ASCII chars to Types of C file.

This commit is contained in:
Levi Bostian 2013-08-31 16:36:16 -05:00
parent 5c711eb30f
commit dfd8afb496

View File

@ -98,6 +98,10 @@ int main() {
unsigned int ux_int;
unsigned long long ux_long_long;
// chars inside single quotes '*' are ASCII versions of
'0' //==> 48 on the ASCII table.
'A' //==> 65 on the ASCII table.
// sizeof(T) gives you the size of a variable with type T in bytes
// sizeof(obj) yields the size of the expression (variable, literal, etc.).
printf("%zu\n", sizeof(int)); // => 4 (on most machines with 4-byte words)