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

What is the meaning of 0 in c#?

1041


Can we inherit partial class in c#?

982


How to update the gui from another thread in c#?

1032


what is IDisposal interface

1205


What is a ienumerator?

968


User's session is explicitly killed by which method ?

1021


Is dictionary a collection?

917


What is the difference between parse and tryparse in c#?

1088


Explain the different types of delegates used in c#.

995


How to prevent the error while updating ui control from another thread?

1002


What is the difference between var and dynamic types in c# 4.0?

1102


What is the difference between hashtable and dictionary?

1002


What are strong name assemblies?

1013


Explain about WSDL

1104


How do I simulate optional parameters to com calls?

997