+ 5

What does Signed and unsinged mean

21st Oct 2016, 9:02 AM
yousef almesbahi
yousef almesbahi - avatar
3 Respostas
+ 9
Signed values can be negative, unsigned values can't but have twice the space for positive numbers as a result. For example, on a 32-bit architecture: An int variable can take values from -2,147,483,648 to 2,147,483,647. An unsigned int variable can take values from 0 to 4,294,967,295.
21st Oct 2016, 10:00 AM
Zen
Zen - avatar
+ 3
when you declare a signed so its mean that you are using the positive and negative numbers and when you are using the unsigned which means that you are only using the positive numbers, so when you are using the unsigned so you get a range between the negative and positive but when you are using the signed so these negative numbers are cancelled and the positive number range become double. This data type is used when you know that your number is how much big in positive and if negative so you used signed
3rd Nov 2016, 5:36 PM
Ismail Zam Zam
Ismail Zam Zam - avatar
- 6
yes
21st Oct 2016, 9:15 AM
Lavlesh Kumar
Lavlesh Kumar - avatar