1.

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

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;



Discussion

No Comment Found

Related InterviewSolutions