mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #33 from esneider/patch-1
Fix precision typo with C integer types
This commit is contained in:
commit
d1e222727a
@ -50,8 +50,8 @@ short x_short = 0;
|
|||||||
char x_char = 0;
|
char x_char = 0;
|
||||||
char y_char = 'y'; // Char literals are quoted with ''
|
char y_char = 'y'; // Char literals are quoted with ''
|
||||||
|
|
||||||
long x_long = 0; // Still 32 bytes for historical reasons
|
long x_long = 0; // Still 32 bits for historical reasons
|
||||||
long long x_long_long = 0; // Guaranteed to be at least 64 bytes
|
long long x_long_long = 0; // Guaranteed to be at least 64 bits
|
||||||
|
|
||||||
// 32-bit floating-point decimal
|
// 32-bit floating-point decimal
|
||||||
float x_float = 0.0;
|
float x_float = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user