📚 Practice Mode

C# Programming

Learn at your own pace with hints and detailed explanations

1 / 15
Multiple Choice

What will be the output of the following program?
using System; class Program
{
static void Main(string[] args)
{
String[] s = new String[2]; s[0] = Hello; s[1] = How are you!; foreach (string name: s)
{
Console.WriteLine( + name);
}
Console.ReadLine();
}
}

  1. HelloHow are you
  2. Hello
  3. It will not compile
  4. It will give exception
  5. None of the above