Home »
MCQs »
C# MCQs
Which is the correct order for explicit type conversion to convert a larger to a smaller type in C#?
27. Which is the correct order for explicit type conversion to convert a larger to a smaller type in C#?
- double -> float -> long -> int -> char -> bool
- double -> float -> long -> int -> char
- float -> double -> long -> int -> char
- float -> double -> long -> int -> char -> bool
Answer: B) double -> float -> long -> int -> char
Explanation:
The explicit type conversion is done in the following order: double -> float -> long -> int -> char.