Explain the term typecasting.
#Don't dare to spam
Answers
Answered by
3
Typecasting is also known as type conversion, it is a method of changing an entity from one data type to another. An example of typecasting is converting an integer to a string. ... This might be done in order to compare two numbers, when one number is saved as a string and the other is an integer
Answered by
1
Explanation:
TYPE CASTING is nothing but the new way of converting a data type of one variable to some other datatype. typecasting is characterized into two types
IMPLICIT TYPECASTING: in this implicit typecasting done by the compiler and there is no loss of information
EXPLICIT TYPECASTING: in this explicit typecasting is done by the programmer and there will be a loss of information.
Similar questions