Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#pattern matching switchSingle-choice MCQ

What does this type-pattern switch print for a double input?

string Kind(object o) => o switch { int => "int", double => "double", _ => "other" }; Console.WriteLine(Kind(3.14));