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 an enumerator in c#?
How to transpose multi-dimensional array?
Explain the difference between class and interface in .net?
Explain the difference between abstract class and interface.
What is difference between ienumerable and ienumerator in c#?
Which constructor is called first in c#?
What is function and method in c#?
What is gac? What are the steps to create an assembly and add it to the gac?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Define acid rule of thumb for transactions in c#.
Explain the types of Polymorphism.
Explain anonymous type in c#?
What are variables in c#?
Which language is used for desktop application?
Is datetime a value type in c#?