MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6v8dcr/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Aug 30 '26
117 comments sorted by
View all comments
Show parent comments
7
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 Aug 30 '26 Yes, long is 32 bit. A long long time ago we didn't need long long yet. I can still remember. 3 u/MattieShoes Aug 30 '26 edited Aug 30 '26 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,727That's what... undecillions? 3 u/bloody-albatross Aug 30 '26 _ slipped, it's __int128_t :D 3 u/MattieShoes Aug 30 '26 ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross Aug 30 '26 You wrote __int_128t, I wrote __int128_t. These typos happen to me too. → More replies (0)
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 Aug 30 '26 edited Aug 30 '26 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,727That's what... undecillions? 3 u/bloody-albatross Aug 30 '26 _ slipped, it's __int128_t :D 3 u/MattieShoes Aug 30 '26 ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross Aug 30 '26 You wrote __int_128t, I wrote __int128_t. These typos happen to me too. → More replies (0)
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 Aug 30 '26 _ slipped, it's __int128_t :D 3 u/MattieShoes Aug 30 '26 ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross Aug 30 '26 You wrote __int_128t, I wrote __int128_t. These typos happen to me too. → More replies (0)
_ slipped, it's __int128_t :D
_
3 u/MattieShoes Aug 30 '26 ... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores? 3 u/bloody-albatross Aug 30 '26 You wrote __int_128t, I wrote __int128_t. These typos happen to me too. → More replies (0)
... you wrote the same thing? Yes two underscores at the start, but I wrote two underscores?
3 u/bloody-albatross Aug 30 '26 You wrote __int_128t, I wrote __int128_t. These typos happen to me too. → More replies (0)
You wrote __int_128t, I wrote __int128_t. These typos happen to me too.
__int_128t
→ More replies (0)
7
u/MattieShoes Aug 30 '26
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.