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 main usage of keyword “virtual” ? How does it work for a method or property?

962


Explain the difference between the debug class and trace class?

943


Explain the difference between access specifier and access modifier in c#?

1038


What is a delegate how is it type safe?

914


What is generic and non generic collections in c#?

882


write a program to find the biggest palindrome in the given string

1016


Why does my windows application pop up a console window every time I run it?

1029


How do I create multifile assembly?

986


How does bubble sort work?

957


How many bytes is an int in c#?

985


What are the types of class in c#?

1166


What are the types of operator?

913


Can you have parameters for static constructors?

991


Which compiler switch creates an xml file from xml comments in the files in an assembly?

1054


What is type safe in c#?

941