Info-loss in common type conversions.

Q23. Discuss the possible info-loss in common type conversions.

Ans. Assigning a value to a type with a greater range (for example, from short to long) poses no problem, however, assigning a value of larger data type to a smaller data type (for example, form double to float) may result in losing some precision.

Leave a Reply

Your email address will not be published. Required fields are marked *

366 Views
%d bloggers like this: