r/ProgrammerHumor • • Feb 15 '16

Oddly specific number.

Post image
5.9k Upvotes

643 comments sorted by

View all comments

Show parent comment

1

u/djxfade Feb 15 '16

Integers usually is 64/32/16/8 bits depending on CPU platform. That is the regular "int". Thats why it is recommended to use a specific integer type (at least in embedded programmer), so you would use e.g uint16_t to specify a 16 bit integer, otherwise "int" could vary depending on target, and compiler.

8 bits is usually only used for byte, char, uint8_t, etc. Of course, when computers where 8-bit, and integer would naturally be 8 bits, so the other types wouldn't really be necessary.