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 the difference between CreateObject() and GetObject()?
What is yield break in c#?
Can hashtable have duplicate keys in c#?
What is serialization and deserialization in c# with example?
What are partial classes and use of partial classes?
What are examples of desktop applications?
Explain the clr triggers?
What is dependency injection in simple words?
What are the types of serialization?
How do you implement multiple inheritance in .NET?
What is a decimal in c#?
Explain the difference between and xml documentation tag?