logo
Type Conversions In C Language
Converting one data type into another data type is called type casting. Whenever we assign a value to a variable using assignment operator, the compiler checks for uniformity and hence the data types at both sides should be same, if the data types are not same then we should convert the types to become same at the both sides.

To convert the data type we use “cast operator” cast operator means writing the data types between the simple braces before a variable whose value is to be converted. This can be done in 2 ways,

1. Implicit type conversion
2. Explicit type conversion