Explain your own answer with proper example?
Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. for example; int sum = 17, count = 5; double mean; mean = (double) sum / count;