In this the data type /Variable of lower type (which holds lower range of values or has lower precision) is converted to a higher type (which holds higher range of values or has high precision). This type of conversion is also called “promotion”.
If a “char” is converted into “int” it is called as internal promotion.
Now the int variable i hold the ASCII code of the char “A”.
Program : The following program is an example of Implicit type casting.
int i = 17;
char c = 'c'; /* ascii value is 99 */
sum = i + c;
printf(“Value of sum : %d\n”, sum );