+ 1

Can anyone explain " long"&"Short" and also explain the use of "signed" , "unsigned" , "long"&"Short"

29th Sep 2020, 9:27 AM
Aquib
Aquib - avatar
2 ответов
+ 2
Type modifiers for other data types int char float double ...Used to modify the range of the data type they precise.small or large range .by default all data types are signed means they can be less than zero with - mark precision but unsigned will not be less than zero.
29th Sep 2020, 10:02 AM
HBhZ_C
HBhZ_C - avatar
+ 1
short and long are byte difference. On 32 bit, long is equal to int. (4 bytes) But on 64 bit, long is 8 bytes. short on both is 2 bytes. The more bytes the data has, the larger range of number you can save in a variable. signed can save negative number. unsigned can only save positive number, but it can save positive number larger than signed can.
29th Sep 2020, 11:24 AM
你知道規則,我也是
你知道規則,我也是 - avatar