What is the result of a narrowing type of conversion?
a.) Loss of data
b.)Addition of data
c.) Corruption of data
d.) None of the above
Answers
Answer:
narrowing conversion changes a value to a data type that might not be able to hold some of the possible values. For example, a fractional value is rounded when it is converted to an integral type, and a numeric type being converted to Boolean is reduced to either True or False .
Answer:
The correct answer of this question is Corruption of data
Explanation:
Given - The result of a narrowing type of conversion- a.) Loss of data b.)Addition of data, c.) Corruption of data, d.) None of the above
So, The narrowing conversion of changes is a value to a data type that might not be the able to hold some of the possible values. Example - A fractional value is the rounded when it is converted to an integral type and a numeric type the being converted to Boolean.