Why does the following code print System.Int32[]
in the console and not the values in the array? In simple words?
static int[] minMax(int[] lst)
{
int a = lst.Min();
int b = lst.Max();
return new int[] { a, b };
}
System.Console.WriteLine(minMax(new int[] { 1, 2, 5, -1, 12, 20 }));