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
Differentiate between copy and default constructor.
what is the syntax to inherit from a class in c#?
Are arrays value types or reference types?
Is there a way to force garbage collection?
Why do we need indexers in c#?
What does type safe mean in c#?
Can abstract classes be final?
When a switch is said to be congested?
What is difference between destructor and finalize?
What's the difference between the debug class and trace class? Documentation looks the same.
Explain the difference between a Private Assembly and a Shared Assembly
Explain About delegates
What is a console file?
What does the initial catalog parameter define in the connection string?
What is form feed and carriage return?