1
What is the output of the following program?
var d = new Dictionary<string, int> { ["a"] = 1 };
d["a"] += 4;
Console.WriteLine(d["a"]);DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following program?
var d = new Dictionary<string, int> { ["a"] = 1 };
d["a"] += 4;
Console.WriteLine(d["a"]);What is the output of the following program?
var nums = new List<int> { 4, 9, 2 };
Console.WriteLine(nums.Contains(9) + " " + nums.IndexOf(2));