Advertisements
Advertisements
Question
Which of the following is an example of implicit type casting?
Options
long to int
int to short
float to double
long to float
MCQ
Advertisements
Solution
float to double
Explanation:
- Implicit type casting occurs automatically when a smaller data type is converted into a larger compatible data type.
- A float is automatically converted to a double because a double has more precision and can store larger values.
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 42]
