In this code, we reversed an array without using inbuilt functions in C#.
class Arrayreverse
{
public void show()
{
int[] ar = new int[] { 1, 2, 3, 4 };
int[] ra = new int[4];
int j=0;
for(int i=ar.Length-1;i>=0;i--)
{
ra[j] = ar[i];
Console.Write("{0} ",ra[j]);
j++;
}
}
}