What is signed and unsigned?

closed account (EwCjE3v7)
Hi there i just have a simple question

What is signed and unsigned?
signed numbers can hold a sign (can be positive or negative).
unsigned numbers hold no sign (always positive)

Since unsigned numbers do not need a sign, they can store higher values.

Example a signed char's range is between [-128,127]
vs unsigned char's range of [0,255]
closed account (EwCjE3v7)
Thanks Disch.Thanks
signed and unsigned are simple type specifiers.:)
closed account (EwCjE3v7)
Yea..I was just reading and was unsure
Last edited on
Helpful to me too. Thanks Disch.
Topic archived. No new replies allowed.