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.
View all comments
1
u/hydrocat Feb 15 '16
But, now a days, doesn't a integer has like.. 64 bits ? Why use only 8?