explain the term Type casting
Answers
Answer:
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'. You can convert the values from one type to another explicitly using the cast operator as follows − (type_name) expression.
Answer:
Type casting means converting a the data type from one type to the other. This happens when a data type is assigned to a variable but the input given by the user is of different type. That time either the virtual machine changes the data type by itself or the programmer has to convert the data type.
>When the virtual machine automatically converts the data type, it is known as implicit type casting.
>When the programmer has to convert the data type by giving a different statement for conversion in the program, it is known as explicit type casting.
If this answer is helpful, pllease mark it as the brainliest:)
Explanation: