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 is generic in c#?
Explain briefly the difference between value type and reference type?
How do you remove white spaces from a string?
What is difference between web and window application?
Why do we need a singleton class?
Give 2 scenarios where static constructors can be used?
What is multithreading? What are the problems that comes with multithreading and how to manage them?
Explain the top reason to use c# language?
What is out in c#?
What is sqlconnection in c#?
What is the use of return in c#?
What is .cs file in c#?
Which namespaces are necessary to create a localized application?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What are All kind of access specifiers for a class and for methods