What's the scoop with signed and unsigned variables? What does that mean?
What's the scoop with signed and unsigned variables? What does that mean?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
They don't have the most significant bit indicating their sign (negative or positive), and are assumed to be positive. Therefore they can represent a greater range of positive numbers.
zen
er.. ok... so in what occurence would they be used?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
You'd use unsigned where you're only need a positive number and you need the extra range.
zen