Q. What will be the output of the following C# code?
Code:using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[-1]);
}
}
}
β
Correct Answer: (C)
Exception