5. Write one example of Implicit and explicit type conversion
Answers
Answered by
1
Implicit type conversion.
double A , B ;
int C;
A=B+C;
here the data type of C gets automatically converted to double type.
Explicit Type Conversion
Int A,B,C;
(double) A = B+C ;
here the user forcibly changes the data type of the variable A from int to double.
Similar questions