|
-
May 16th, 2011, 08:19 PM
#6
Re: ROT13 ******* addition turns value negative :s
 Originally Posted by BJ2
Thankyou,
Out of curiosity/understanding, what advantage is there of having a signed char limited to -128 to 127?
To expand on what Paul & GCDEF said, a char is 1 byte - it can have 256 possible values.
If it is unsigned, those values are in the range 0 - 255
If it is signed, those values are in the range -128 - +127.
If you want to understand further... http://en.wikipedia.org/wiki/Two's_complement
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|