A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
short and byte
Joined: Oct 30, 2007
Aug 17, 2008 05:12:00
What is the difference between a short and a byte datatype?What can be the range of numbers that i can include in short and byte?
Is it like short can be from -100 to 100?
Joined: Aug 04, 2008
Aug 17, 2008 05:34:00
Byte is 8 bit signed data type and short is 16 bit signed data type. Thus for byte, the range is -128 to 127. Please calculate the range of short yourself.
Joined: Oct 13, 2005
Aug 17, 2008 06:15:00
See my first port of call for most of these thing,
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: short and byte
doubt in switch.......
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015