mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
Add clarity to characters in character set.
This commit is contained in:
parent
2e8e2b5f35
commit
ca32d7a5f2
@ -110,9 +110,9 @@ int main() {
|
|||||||
unsigned int ux_int;
|
unsigned int ux_int;
|
||||||
unsigned long long ux_long_long;
|
unsigned long long ux_long_long;
|
||||||
|
|
||||||
// chars inside single quotes '*' are character constants.
|
// chars inside single quotes '*' are integers in your character set.
|
||||||
'0' //==> 48 on the ASCII table.
|
'0' //==> 48 on the ASCII character set.
|
||||||
'A' //==> 65 on the ASCII table.
|
'A' //==> 65 on the ASCII character set.
|
||||||
|
|
||||||
// sizeof(T) gives you the size of a variable with type T in bytes
|
// 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.).
|
// sizeof(obj) yields the size of the expression (variable, literal, etc.).
|
||||||
|
Loading…
Reference in New Issue
Block a user