LogiQuest
Back to Control Instructions
6

What is the output of the following program?

string r = 5 switch { < 0 => "neg", 0 => "zero", _ => "pos" };
Console.WriteLine(r);
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.