How can you sort the elements of the array in descending order?



How can you sort the elements of the array in descending order?..

Answer / rahul

By calling Sort() and then Reverse() methods.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

If all code is written in a try block and write a catch block with Exception type Exception .In that scenario will all the exceptions catched by that catch block? or any exceptions which will not be caught?

3 Answers   Honeywell,


What is tuple in c#?

0 Answers  


What do you know about device context?

0 Answers   C DAC,


What is asynchronous one-way calls?

0 Answers  


How many classes are there in classification?

0 Answers  


How do I download a program to my desktop?

0 Answers  


I want to single value if you give any integer value. Below are examples  1. Input: 123  Output: 6 2. Input: 99   9+9=18   1+8  Output: 9 How to get above output?

1 Answers   AxSys,


Can you declare a field readonly?

0 Answers  


Can you inherit multiple classes in c#?

0 Answers  


Why do we need encapsulation in c#?

0 Answers  


What is or operator in c#?

0 Answers  


Does c# have primitives?

0 Answers  


Categories