What is type casting? Give an example?
Answers
Answered by
10
Answer:
Typecasting, or type conversion, 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.
(hope it helps :))
Answered by
7
Answer:
Typecasting, or type conversion, 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.
Explanation:
I hope it will help you.
Please vote my answer.
Similar questions