R
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[0] + mobiles[2]);
}
}
}
namespace MyApplication {
class Program {
static void Main(string[] args) {
string[] mobiles = {"iPhone", "Samsung", "Vivo"};
Console.WriteLine(mobiles[0] + mobiles[2]);
}
}
}
- Correct Answer - Option(A)
- Views: 250
- Filed under category C#
Discusssion
Login to discuss.