<Li> long to int causes dropping of excess higher order bits . </Li> <P> One special case of implicit type conversion is type promotion, where the compiler automatically expands the binary representation of objects of integer or floating - point types . Promotions are commonly used with types smaller than the native type of the target platform's arithmetic logic unit (ALU), before arithmetic and logical operations, to make such operations possible, or more efficient if the ALU can work with more than one type . C and C++ perform such promotion for objects of boolean, character, wide character, enumeration, and short integer types which are promoted to int, and for objects of type float, which are promoted to double . Unlike some other type conversions, promotions never lose precision or modify the value stored in the object . </P> <P> In Java: </P> <P> Explicit type conversion is a type conversion which is explicitly defined within a program (instead of being done by a compiler for implicit type conversion). It is defined by the user in the program . </P>

Type casting and type conversion in c language