Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# array backwards

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
*/
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #array
ADD COMMENT
Topic
Name
9+3 =