Coercion belongs to which type of conversion? Also write the Disadvantage of using it?
Coercion is an implicit type conversion
Disadvantage:
-They decrease in the type error detection ability of the compiler
- In most languages, all numeric types are coerced in expressions, using widening conversions
- In Ada, there are virtually no coercions in expressions
Disadvantage:
-They decrease in the type error detection ability of the compiler
- In most languages, all numeric types are coerced in expressions, using widening conversions
- In Ada, there are virtually no coercions in expressions
Coercion belongs to which type of conversion?
Reviewed by MCH
on
March 01, 2014
Rating:
No comments: