+ 2

What is the difference b/w signed and unsigned integer datatype?

9th Apr 2017, 6:53 PM
T Karthikeyan
T Karthikeyan - avatar
2 Answers
+ 6
Signed int - As the name says, it can be positive or negative or zero. Unsigned int - As the name says, it cannot be negative. As number of values are same, signed int varies from -2147483648 to +2147483647 whereas unsigned int varies from 0 to 4294967295.
10th Apr 2017, 1:52 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
signed int: from −2.147.483.648 to 2.147.483.647 unsigned int: from 0 to 4.294.967.295
9th Apr 2017, 7:35 PM
Daniel Thomalla
Daniel Thomalla - avatar