Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
How can you sort the elements of the array in descending order
B) Reverse methods
C) By calling Sort and then Reverse methods
D) Can’t sort in descending
Editorial / Best Answer
Answered by: Prakhar
int[] arr = new int[3];
arr[0] = 4;
arr[1] = 1;
arr[2] = 5;
Array.Sort(arr);
Array.Reverse(arr);
Related Answered Questions
Related Open Questions