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