8
Reply

Why not executing?

Maha

Maha

Sep 5 2013 2:02 PM
1.1k
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)