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 does ienumerable mean?

901


Can you prevent a class from being instantiated?

985


What is deferred execution?

882


What is threading in c# with example?

906


if you do have a stack overflow profile.what is your ranking?

1876


Can I get the name of a type at runtime?

978


What is tuple in c#?

906


If you want to convert a base type to a derived type, what type of conversion do you use?

945


What does executescalar return in c#?

875


What are some of the commonly used commands in sqlcommand?

896


What does return do in for loop?

909


Is null c# operator?

944


Can I fly with a loop recorder?

898


What is the difference between null and string empty in c#?

888


What do you mean by casting a data type?

925