unsigned

what is unsigned used for???
unsigned!!! <3

Integral values generally have a single bit that states whether they are positive or negative in value. Unsigned changes the meaning of that bit, so that your integral value can reach double the positive values of its signed counterpart, but it cannot have a negative value.

-Albatross
As Albatross says, there are lots of values where negative numbers make no sense at all: string length or vector size, for example. Negative values in these instances are meaningless.
Topic archived. No new replies allowed.