char[] array = {'a','b','c'};
Array.Reverse(array);
for (int i = 0; i < arr.Length / 2; i++)
{
int tmp = arr[i];
arr[i] = arr[arr.Length - i - 1];
arr[arr.Length - i - 1] = tmp;
}
using System;
public class Example
{
public static void Main()
{
int[] array = { 2, 4, 6, 8 };
Array.Reverse(array);
Console.WriteLine(String.Join(',', array));
}
}
/*
Output: 8,6,4,2
*/
string[] arr = new string[5];
for (int a = arr.Length; --a >= 0;)
{
// ...
}