The Student Room Group
Reply 1
-2^15 is smallest, so -32768. Biggest is (2^15)-1 so 32767.

edit- not really worth using shorts usually when coding though. I stick to ints (yes its lazy but it works and you don't lose that much memory).
Reply 2
thanx, i don't use code, i know nothing about programming, but my cousin needed help with her holiday homework but thanks a lot
Reply 3
Ynox
-2^15 is smallest, so -32768. Biggest is (2^15)-1 so 32767.

edit- not really worth using shorts usually when coding though. I stick to ints (yes its lazy but it works and you don't lose that much memory).
-32767 :smile:

Latest

Trending

Trending