Type casting
Get introduced to type casting with the help of an interactive example.
We'll cover the following...
What is type casting?
It is a unary operator, and its basic syntax is given below:
(type) (expression);
Types
There are two types of typecasting:
- Implicit type casting
- Explicit type casting