How can you sort the elements of the array in descending order?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / payal mehta
We can use Sort property for that.A string that contains
the column name followed by "ASC" (ascending) or "DESC"
(descending). Columns are sorted ascending by default.
Is This Answer Correct ? | 1 Yes | 5 No |
What is a interface in c#?
what is the real use of interface in c#,other than that multiple inheritance is not possible
What is dataview c#?
List the differences between method overriding and method overloading?
What is inner class in c#?
Are multiple data types stored in System.Array?
What is the use of dll file in c#?
What happens during the process of boxing?
How is method overriding different from overloading?
Which is faster dictionary or hashtable?
Explain data types in c#?
Explain the process of Serialization?