Differentiate between implicit type casting and explicit type casting along with example
Answers
Answered by
6
Answer:
Implicit type casting
Implicit type casting means conversion of data types without losing its original meaning. This type of typecasting is essential when you want to change data types without changing the significance of the values stored inside the variable.
Explicit type casting
In implicit type conversion, the data type is converted automatically. There are some scenarios in which we may have to force type conversion. Suppose we have a variable div that stores the division of two operands which are declared as an int data type.
I hope this answer helpful for you
Answered by
5
Answer:
Implicit type casting
- Implicit type conversion operates automatically when the compatible data type is found.
- User intervision is not necessary,
- Does not result in loss of data,
Explicit type casting
- Explicit type conversion requires a type casting operator.
- User intervision is necessary
- May result in the loss of data
hope it help u
Similar questions