What do you mean by implicit and explicit data type conversion?
Answers
Implicit datatype conversion means conversion of datatype by the compiler itself into bigger datatype is called implicit.It is done by compiler itself,Other names of this are widening/corencion/type promotion/Type casting
For ex- char ch='A' ; int a=5,b;
b=ch+a;
b=65+5 // ASCII code of ch=65 that converts it into integer by compiler itself
b=70
Explicit datatype conversion is the process of conversion of datatype by user choice into smaller datatype.It is depend on user or programmer.It is done forcefully by compiler.Other names are narrowing/type demotion
For ex-
int a=19,k; double d=2.4,;
k=a+d;
k=19+(int)2.4
k=21 // as it is forcefully converted into integer.
Hope it will help you @
Mark me brainlest !!
Implicit data type conversion :-
Implicit data type conversion :-In mixed expression, the data type of the result gets converted automatically into its higher type without intervention of the user. This system of type conversion is known as Implicit type conversion or coercion.
Explicit data type conversion :-
When the data type gets converted into another type after user intervention, the type conversion is known as explicit type conversion or forced conversion also as type casting.