0

What does having signed/unsigned short/long do in practice?

This may be a dumb question.

31st Jul 2016, 6:25 PM
Mojo
2 Answers
+ 1
short and long decrease/increase the allocated memory for the int allowing you to hold a maximum smaller or bigger number within them, unsigned and signed are to do with negative and positive numbers, if it is unsigned you can hold no negative numbera however it can hold twice the amount of normal positive numbers while signed allows negtive and positive like normal, I could be wrong
3rd Aug 2016, 1:44 AM
Null Void
Null Void - avatar
0
signed: can hold negative and positive values unsigned: can only hold positive values short: smaller range but takes up less memory long: larger range but takes up more memory
6th Aug 2016, 2:51 PM
Samuel Neo
Samuel Neo - avatar