Archive for the ‘H- Narrowing and widening’ Category

Narrowing and widening

Sunday, March 8th, 2009

Narrowing and widening

If you know what casting is, this will be easy for you

A byte is a small integer that has a maximum value of 255, if you want to save 315 in that byte variable, you will need to widen it to an integer for example.