Converting a variable of data type one to another data type is called typecast and process is called typecasting. See an example:
int x = 22, y = 7;
double num;
num = (double) x/y;
Knowledge point
Converting a variable of data type one to another data type is called typecast and process is called typecasting. See an example:
int x = 22, y = 7;
double num;
num = (double) x/y;