+ 1

What is the difference between signed int and unsigned int ?

java

16th Mar 2017, 11:24 PM
Ahmed
Ahmed - avatar
4 Respostas
+ 15
Signed int can have a sign at the start: either + or - Unsigned ints are only positive
16th Mar 2017, 11:55 PM
Jafca
Jafca - avatar
+ 15
The differences are: - unsigned ints don't have a sign, such as + or - - signed ints have a sign, that means they can have a positive or negative value - Java doesn't have signed ints, but only unsigned ints.
16th Mar 2017, 11:55 PM
Tashi N
Tashi N - avatar
+ 15
Beat you by a second 😎 @Tashi N
16th Mar 2017, 11:56 PM
Jafca
Jafca - avatar
+ 2
thanks every body
17th Mar 2017, 5:28 AM
Ahmed
Ahmed - avatar