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

16y ago

What else can I help you with?

Related Questions

Character use only one byte why Java use two byte for character?

The number of bytes used by a character varies from language to language. Java uses a 16-bit (two-byte) character so that it can represent many non-Latin characters in the Unicode character set.


Difference between megabytes kilobytes and gigabytes?

1 Gigabyte = 1024 megabytes 1 Megabyte = 1024 kilobytes 1 kilobyte= 1024 bytes 1 byte= 16 bits


What is the difference between 9/16 and 1/2?

The difference between 9/16 and 1/2 is 1/16.


What would you call a string of 16 bits?

16 bits is a byte, for the record half a byte is called a "nibble". I kid you not...


What is the difference between 13 and 16?

The difference between 13 and 16 is 3. To find the difference between two numbers subtract the larger number by the smaller number. (16-13=3)


What is the difference between 29 and 16?

29 - 16 = 13


What is the difference between 16 and 20?

-16 - 20= -36


What is the difference between 0x1 and 0x01 in c language?

0x means hexadecimal (base-16). Just like in decimal, 1 and 01 are the same number.


Is 16 closer to 10 or 20?

16 is closer to 20 than it is to 10. The difference between 16 and 20 is 4, while the difference between 16 and 10 is 6. Therefore, 16 is nearer to 20.


What is the difference between -2 and -16?

14


What is the difference between 16 GB and 32 GB?

16 GB


What is the largest decimal number that a two byte integer can represent?

There are 8 bits in a byte, so a two byte integer would be 16 bits. The largest 16 bit integer possible would be 11111111111111112, which is 65535 in base 10.