Answer (Choose 1 answer)
What is the output of the following code?
static int GetNumber(int[] a){
int x = a.Length / 2;
return a[x];
}
static void Main(string[] args){int[] a = {8, 11, 16, 13,27 };int x;
x = GetNumber(a);
Console.WriteLine(x);
}
A. 16
B. 11
C. 13
D. 35
Elt