cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
unsigned to signed integer
unsigned to signed integer
Mar 18, 2013 at 3:19pm UTC
tcan618
(38)
Why is the biggest unsigned integer becomes -1 when it is turned into a signed integer ?
Mar 18, 2013 at 3:44pm UTC
Catfish3
(666)
It's because of how numbers are represented.
Most computers use the Two's Complement method.
http://en.wikipedia.org/wiki/Two%27s_complement
Topic archived. No new replies allowed.