QUESTION 73 · Expressions and conversions
What is implicit type conversion? Give an example.
2 marksAnswer
Implicit type conversion is a conversion performed automatically by C without a written cast.
- In double value = 5;, integer 5 is converted to double, giving 5.0.
- A conversion can lose information: converting 3.8 to int discards the fractional part.