Type Conversion in C Language | Type Casting in C Language | C Programing Tutorial in Hindi – 009



Type Conversion in C Language | Type Casting in C Language | C Programing Tutorial in Hindi – 009

Type Conversion in C Language | Type Casting in C Language | C Programing Tutorial in Hindi - 009

✅ In this Video we are going to learn about the type conversion in C Language. Type conversion in C language refers to the process of converting a value of one data type into another data type. There are two types of type conversion: implicit and explicit.

✅ Implicit Type Conversion:
Implicit type conversion is also known as automatic type conversion. It occurs when the compiler automatically converts one data type into another data type without any explicit instruction from the programmer. Implicit type conversion occurs when:
A value of a smaller data type is assigned to a variable of a larger data type.
A value of a lower-ranked data type in the type hierarchy is assigned to a variable of a higher-ranked data type.

✅ Explicit Type Conversion:
Explicit type conversion is also known as type casting. It occurs when the programmer explicitly instructs the compiler to convert a value of one data type into another data type.
Explicit type conversion is done using the cast operator, which is represented by parentheses ().