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
Integers (Unsigned & signed)
Integers (Unsigned & signed)
Jan 31, 2010 at 1:49am UTC
makan007
(77)
What are the differences between unsigned int, signed int & int?
Jan 31, 2010 at 1:50am UTC
blackcoder41
(1426)
unsigned int can only store positive numbers..
Jan 31, 2010 at 1:53am UTC
bluezor
(298)
In the tutorial -
http://www.cplusplus.com/doc/tutorial/variables/
The va;ies an int can possess are:
signed: -2147483648 to 2147483647
unsigned: 0 to 4294967295
If you do not specify the int to be signed or unsigned, it is signed by default.
Topic archived. No new replies allowed.