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
What does ienumerable mean?
Can you prevent a class from being instantiated?
What is deferred execution?
What is threading in c# with example?
if you do have a stack overflow profile.what is your ranking?
Can I get the name of a type at runtime?
What is tuple in c#?
If you want to convert a base type to a derived type, what type of conversion do you use?
What does executescalar return in c#?
What are some of the commonly used commands in sqlcommand?
What does return do in for loop?
Is null c# operator?
Can I fly with a loop recorder?
What is the difference between null and string empty in c#?
What do you mean by casting a data type?