Answer: int[] array = new int[] { 3, 1, 4, 5, 2 };
//Declare Array
Array.Sort<int>( array );
// Sort Method used Asending Order
Array.Reverse( array );
// reverse Method used Decenting Order
Source: Accenture Interview Question | Asked In: Many Interviews |
Alert Moderator