r/ProgrammerHumor 2d ago

Meme bugIntroducedDebugging

Post image
1.1k Upvotes

120 comments sorted by

View all comments

Show parent comments

6

u/MattieShoes 2d ago

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.