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

Differentiate between copy and default constructor.

982


what is the syntax to inherit from a class in c#?

970


Are arrays value types or reference types?

903


Is there a way to force garbage collection?

959


Why do we need indexers in c#?

867


What does type safe mean in c#?

926


Can abstract classes be final?

901


When a switch is said to be congested?

940


What is difference between destructor and finalize?

868


What's the difference between the debug class and trace class? Documentation looks the same.

1016


Explain the difference between a Private Assembly and a Shared Assembly

916


Explain About delegates

984


What is a console file?

904


What does the initial catalog parameter define in the connection string?

876


What is form feed and carriage return?

862