allomov
2/20/2014 - 2:34 PM

implicit_conversion.c

int i = 1; // integer type
double d = 2.0; // floating point type

if (d > i) d = i; // comparing and assignment causes implicit type converstion