mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Add ASCII chars to Types of C file.
This commit is contained in:
parent
5c711eb30f
commit
dfd8afb496
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user