Array Sort Without LINQ

Rajesh_Kumar
Posted by Rajesh_Kumar under C# category on | Points: 40 | Views : 1255
char[] arr_characters = {'p','a','b','q','g','n','o'};
Array.Sort<char>(arr_characters);

foreach(var value in arr_characters)
Console.WriteLine(value);

Output:-
a
b
g
n
o
p
q

Comments or Responses

Login to post response