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
What is the main usage of keyword “virtual†? How does it work for a method or property?
Explain the difference between the debug class and trace class?
Explain the difference between access specifier and access modifier in c#?
What is a delegate how is it type safe?
What is generic and non generic collections in c#?
write a program to find the biggest palindrome in the given string
Why does my windows application pop up a console window every time I run it?
How do I create multifile assembly?
How does bubble sort work?
How many bytes is an int in c#?
What are the types of class in c#?
What are the types of operator?
Can you have parameters for static constructors?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
What is type safe in c#?