How can you sort the elements of the array in descending order?
Answer Posted / neoupadhyay
int[] arr = new int[3];
arr(0) = 3;
arr(1) = 5;
arr(2) = 1;
Array.Sort();
Array.Reverse();
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Is array ienumerable c#?
What is the .NET collection class that allows an element to be accessed using a unique key?
Which is faster hashtable or dictionary?
What is global namespace in c#?
How many constructor can a class have?
Where is the main method in c#?
What are the types of class in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
What are the types in c#?
What are custom attributes in c#?
What are annotations in c#?
Why linq is having select clause at the end?
What is using keyword in C#?
What is the difference between final finally and finalize in c#?
What is the difference between and xml documentation tag?