How can you sort the elements of the array in descending order?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / payal mehta
We can use Sort property for that.A string that contains
the column name followed by "ASC" (ascending) or "DESC"
(descending). Columns are sorted ascending by default.
Is This Answer Correct ? | 1 Yes | 5 No |
What is an array of arrays called?
which datatype i have to use we i need dynamic size.for eg. empname .in first row it have only five chars.but next row it have 100 chars.
write a program to find the biggest palindrome in the given string
How many bytes is a char c#?
What are the properties of a string class?
What is the use of expression tree in c#?
Explain the use of Mutex in C#?
0 Answers Sans Pareil IT Services,
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
What is tpl in c#?
What is helper method in c#?
Can a class or a struct have multiple constructors?
what is the difference between int and Int32?