+2 votes
in Class 11 by kratos

What is the difference between implicit & explicit type casting? Give one example of each.

1 Answer

+3 votes
by kratos
 
Best answer

Implicit type casting is an automatic type conversion by the complier.

(eg) float f,g; int a;

g = a+f // a transforms to float

Explicit type casting is done by the user.

(eg) g = (double) a+f;

...