Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How many static constructors are allowed in a class?

860


What are the return types in c#?

911


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

907


Give an example of removing an element from the queue?

885


What are extender provider components? Explain how to use an extender provider in the project.

847


Should I make my destructor virtual?

988


Why would you use a class property in c#?

863


How more than one version of an assembly can keep in same place?

909


What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

925


Explain dataset.acceptchanges method in .net?

891


What can I create with c#?

849


Any problem found in vs.et

943


Explain how obfuscator works in .net

946


How do I open the console window?

960


What is concatenation and when should it be used?

947