Is there a real platform/compiler combo that defines int
as 64 bits? Or is this just used to scare new programmers like myself into using int32_t
where size matters (e.g. saving to a file) in order to make it "portable"?
64-bit unsigned integer type is used to store only pozitiv whole number. 64-bit unsigned integer and his value range: from 0 to 18446744073709551615.
A 64-bit signed integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive). A 64-bit unsigned integer. It has a minimum value of 0 and a maximum value of (2^64)-1 (inclusive).
int is always 32 bits wide. sizeof(T) represents the number of 8-bit bytes (octets) needed to store a variable of type T .
There absolutely are such systems. There may be more in the future (or there may not). And do you want to take a bet on what int
will be on a possible 128-bit architecture?
Wikipedia has an incomplete-but-useful rundown: http://en.wikipedia.org/wiki/64-bit#64-bit_data_models
I believe that in c99 long long
is usually 64 bit. gcc and microsoft both use this convention.
http://jk-technology.com/c/inttypes.html#long_long
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With