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 |
Define boxing and unboxing in c#?
Why singleton class is sealed?
One start and stop button is there and one textbox is there.when you click start button ,it will display 1,2,3......up to infinite in textbox.when you click stop button it will stop.
How?s the DLL Hell problem solved in .NET?
What is difference between value and reference types?
What is the advantage of constructor?
How many bytes is a long c#?
what is the purpose of new keyword while creating an object?
What is desktop GUI application?
What is a factory in c#?
When you inherit a protected class-level variable, who is it available to?
What is strong data type in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)