Q50 What is use of typecast?

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;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.