int[] i = new int[] { 20,5,90,7,44,81 };
i = new int[] { 5,7,20,90,44,81 };
i = new int[] { 20,5,90,7,44,81 };
Quote:unsort
int[] i = new int[] { 20,5,90,7,44,81 }; int[] j = new int[] { 1 , 3 , 0 , 2 , 4 , 5 };
int[] i = new int[] { 20, 5, 90, 7, 44, 81 }; int[] unsortedarray = new int[i.Length]; i.CopyTo(unsortedarray, 0); Array.Sort(i); // sorted array 5,7,20,44,81,90 i = unsortedarray; //un sorted array 20, 5, 90, 7, 44, 81
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)