how to copy one array into another array?

Omniitstudent
Posted by Omniitstudent under C# category on | Points: 40 | Views : 1421
using System;
namespace ConsoleApplication
{
class Program
{
static void Main()
{
int[] Numbers = { 20, 50, 30, 10, 40 };
int[] CopyOfNumbers=new int[5];
Numbers.CopyTo(CopyOfNumbers,0);
foreach (int i in CopyOfNumbers)
{
Console.WriteLine(i);
}
}
}
}

crazy code......

Comments or Responses

Login to post response