Maha

Maha

  • NA
  • 0
  • 326.3k

Why not executing?

Sep 5 2013 2:02 PM
Why following program is not executing?

using System;

class Program
{
static void Main()
{
int[] intA = {1,2,3,4,5};
string[] stringA = {"aa","bb","cc" };

A(intA);
A(stringA);

Console.ReadKey();
}
static void A(object[] x)
{
foreach (object item in x)
{
Console.WriteLine(item);

}
}
}


Answers (8)