Home »
MCQs »
C# MCQs
What will be the output of the following C# code? | Question 18
68. What will be the output of the following C# code?
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[0] + mobiles[2]);
}
}
}
- iPhone
- Vivo
- iPhoneVivo
- Runtime Error
Answer: C) iPhoneVivo