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 are methods in C#?
Why we use delegates in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
What is callback in c#?
What is sqldatareader c#?
How we can create an array with non-default values?
How do I do implement a trace?
What is a nullreferenceexception?
How many types of constructors are there in c#?
Is c# pass by reference?
What is meant by enumerable in c#?
What is a class level variable in c#?
Why is lazy loading?
What is generic collection in c#?
List the 5 different access modifiers in c#?