// archives

65535

This tag is associated with 2 posts

Unsigned Types

You should use unsigned types

Only for quantities that are never negative (B-1)

(B-1) Such as populations and bean counts

To create unsigned versions of the basic integer types

You just use the keyword unsigned to modify the declarations (A-1):

Example of (A-1)

unsigned short change; // unsigned short type
unsigned int univac; // unsigned int type
unsigned eniac; // also unsigned int
unsigned long edvac; // [...]

Short Integers

A word

Which is a group of 16 contiguous bits or 2 bytes, is used to represent a natural number
As we have studied, the maximum numeric value that can fit in a word is 65535
Since the Byte is used only to represent a character, whenever you plan to use a number in your program, the minimum [...]