The process of "converting one data type into an another data type" is called type casting.
Type casting have 2 types, they are
int x=10;
float f=7.6;
d=x; // implicit type casting
x=int(f); //explicit type casting
Type casting have 2 types, they are
- Implicit type casting
- Explicit type casting
int x=10;
float f=7.6;
d=x; // implicit type casting
x=int(f); //explicit type casting
No comments:
Post a Comment