LogiQuest
Back to Generics
10

What is the output of the following program?

var nums = new List<int> { 4, 9, 2 };
Console.WriteLine(nums.Contains(9) + " " + nums.IndexOf(2));
Easy

Discussion (0)

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

Log in to join the discussion.