MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6v8dcr/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 2d ago
120 comments sorted by
View all comments
Show parent comments
6
AFAIK the size of int is specified as "at least" 32 bit in the C standard
I believe it's 16 bit, though you're not likely to encounter a 16 bit int today unless it's a microcontroller or something.
3 u/SeriousPlankton2000 2d ago Yes, long is 32 bit. A long long time ago we didn't need long long yet. I can still remember. 3 u/MattieShoes 2d ago edited 2d ago And now there's __int_128t __int128_t, at least in gcc. :-) So probably -170,141,183,460,469,231,731,687,303,715,884,105,728 to 170,141,183,460,469,231,731,687,303,715,884,105,727 That's what... undecillions? 3 u/bloody-albatross 2d ago _ slipped, it's __int128_t :D 3 u/MattieShoes 2d ago ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross 2d ago You wrote __int_128t, I wrote __int128_t. These typos happen to me too. 3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
3
Yes, long is 32 bit. A long long time ago we didn't need long long yet. I can still remember.
3 u/MattieShoes 2d ago edited 2d ago And now there's __int_128t __int128_t, at least in gcc. :-) So probably -170,141,183,460,469,231,731,687,303,715,884,105,728 to 170,141,183,460,469,231,731,687,303,715,884,105,727 That's what... undecillions? 3 u/bloody-albatross 2d ago _ slipped, it's __int128_t :D 3 u/MattieShoes 2d ago ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross 2d ago You wrote __int_128t, I wrote __int128_t. These typos happen to me too. 3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
And now there's __int_128t __int128_t, at least in gcc. :-)
__int128_t
So probably -170,141,183,460,469,231,731,687,303,715,884,105,728 to 170,141,183,460,469,231,731,687,303,715,884,105,727
That's what... undecillions?
3 u/bloody-albatross 2d ago _ slipped, it's __int128_t :D 3 u/MattieShoes 2d ago ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross 2d ago You wrote __int_128t, I wrote __int128_t. These typos happen to me too. 3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
_ slipped, it's __int128_t :D
_
3 u/MattieShoes 2d ago ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross 2d ago You wrote __int_128t, I wrote __int128_t. These typos happen to me too. 3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores?
3 u/bloody-albatross 2d ago You wrote __int_128t, I wrote __int128_t. These typos happen to me too. 3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
You wrote __int_128t, I wrote __int128_t. These typos happen to me too.
__int_128t
3 u/MattieShoes 2d ago Oh son of a bitch, my bad! I was going from memory. fixed.
Oh son of a bitch, my bad! I was going from memory. fixed.
6
u/MattieShoes 2d ago
I believe it's 16 bit, though you're not likely to encounter a 16 bit int today unless it's a microcontroller or something.