Hi Kri, Narrowing (explicit cast) means you want to shove something big into something small (float --> int) and you need to let the compiler know that your aware that there could be a "possible loss of precision". Widening (implicit cast) doesn't require you to write the cast, the conversion will happen automatically beacuse the compiler knows a byte value will fit inside an int .
Originally posted by kri shan: What is the difference betwen type casting and narrowing?
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad: