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 an enumerator in c#?

973


How to transpose multi-dimensional array?

1090


Explain the difference between class and interface in .net?

874


Explain the difference between abstract class and interface.

1164


What is difference between ienumerable and ienumerator in c#?

937


Which constructor is called first in c#?

949


What is function and method in c#?

1002


What is gac? What are the steps to create an assembly and add it to the gac?

927


Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?

899


Define acid rule of thumb for transactions in c#.

897


Explain the types of Polymorphism.

1140


Explain anonymous type in c#?

958


What are variables in c#?

966


Which language is used for desktop application?

959


Is datetime a value type in c#?

890