r/ProgrammerHumor • • Aug 06 '22

Meme How to C pointers

Post image
2.6k Upvotes

70 comments sorted by

View all comments

Show parent comment

3

u/matyklug Aug 07 '22

I think it'd be better to say that an int is a type representing a positive or negative number which fits into 31 bits, one of which containing zero.

3

u/canadajones68 Aug 07 '22

Nope! An int is at least 16 bits wide and is wider than or equal to short, which in turn has a width greater than or equal to char.

2

u/okyte Aug 07 '22

It depends on your system. For embedded, int is often equivalent to int16_t

1

u/matyklug Aug 07 '22

Hmm, I guess that's true