answersLogoWhite

0

You probably mean 'bit' rather than 'byte'.

The difference is that 32-bit variables can store more data than 16-bit ones.

16-bit types include short int and short (same thing). Short int can store numbers -32768 to 32767.

32-bit types are now the default and include int, long int (same thing now), long (same thing again), float, and (usually) pointers. Ints (and long ints) can store numbers -2,147,483,648 to 2,147,483,648.

The difference is that 32-bit data values are less likely to overflow, wrapping around from the highest number to lowest, and should usually be used unless there's some pressing reason not to. A person's age could be stored in a short int without fear of going into the thirty thousands, but not their income.

So, the rule of thumb is to stick with int and float and master them before venturing into the less used (but still useful) other types.

User Avatar

Wiki User

15y ago

What else can I help you with?