What is type conversion/type casting? Give example by program?
Answers
Answered by
2
Answer:
Type Conversion example –
int x=30; float y; y=x; // y==30.000000. 1. In type casting, a data type is converted into another data type by a programmer using casting operator. Whereas in type conversion, a data type is converted into another data type by a compiler
Similar questions