How can you sort the elements of the array in descending order?
int[] arr = new int[3];
arr[0] = 4;
arr[1] = 1;
arr[2] = 5;
Array.Sort(arr);
Array.Reverse(arr);
Explore posts in the same categories: ASP.Net Interview Questions, C# Interview Questions