Buy Questpond's video subscriptions on
huge discount
.
Online: 2047
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
How can you sort the elements of the array in descending order?
Posted by
Poster
on 4/27/2008 | Category:
C# Interview questions
| Views: 9898
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
By calling Array.Sort() and then Array.Reverse() methods.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What class is underneath the SortedList class?
Next > :
What’s the difference between the System.Array.Cop ...
Comments or Responses
Posted by:
Kulygin
on: 1/24/2013 |
Points: 10
It isn't a good idea to sort an array and then to reverse it. Better solution is to use one of the overloads of Sort method, which allows to set the comparison strategy. (IComparer or Comparison for example).
Login to post response
More Interview Questions by Poster
What’s the difference between the System.Array.CopyTo() and System.Arr ...
Are private class-level variables inherited?
How is the DLL Hell problem solved in .NET?
What is an Interface?
What is Sealed modifiers?
What is Abstract Class?
What is New modifiers?
What is Virtual keyword?
Latest Interview Questions
Write code for a html table that will have one row and one column?
What is RSS?
What is UML?
What is Satellite Assembly?
What is Delegates?
What is EnableViewStateMAC?
Can Struct be inherited?
What is Virtual method?
More ...