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

856


Explain briefly the difference between value type and reference type?

1017


How do you remove white spaces from a string?

930


What is difference between web and window application?

843


Why do we need a singleton class?

1006


Give 2 scenarios where static constructors can be used?

924


What is multithreading? What are the problems that comes with multithreading and how to manage them?

970


Explain the top reason to use c# language?

933


What is out in c#?

922


What is sqlconnection in c#?

923


What is the use of return in c#?

943


What is .cs file in c#?

902


Which namespaces are necessary to create a localized application?

1044


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

956


What are All kind of access specifiers for a class and for methods

1063