I was just reading in K&R page 44-45 that "conversions take place across assignments; the value of the right side is converted to the type on the left, which is the type of the result......If x is float and i is int, then x = i and i = x both cause conversions; float to int causes truncation"
so if I can type:
-
int i;
-
float f;
-
-
i = f; // and f = i;
-
-
without explicitly casting (float) and (int), then
what's the purpose of casting???