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 |
When static constructor is invoked?
Why is the XML InfoSet specification different from the Xml DOM? What does the InfoSet attempt to solve ?
What you mean by inner exception in c#?
What is type keyword in c#?
An Array is a Ref Type? what about the array elements which are value type(int,Float...etc)?
How many types of namespaces available in version4?
can it possible to acees the virthual method using the override method object? plz give me the example
How to find whether the application is run from inside ide or not?
Can a abstract class have a constructor?
what is scope of a protected internal member variable of a c# class
Is as operator in c#?
what is application domain?