//What would be the expected output of the following code?
using System;
using System.Linq;
public class Program
{
public static void Main()
var a = new int[]{1, 2, 3, 4, 5};
var b = a.Where(x => x < 5);
for (var i = 0; i < a.Length; i++)
if (a[i] == 4)
a[i] = 5;
}
// Console.WriteLine(string.Join(", ", b));