why do we need to convert string to char array in c# code example
Example 1: string to char array c#
string chars = "Array";
char[] letters = chars.ToCharArray();
Example 2: convert char array into string c#
char[] char_arr = {'Y','o','!'};
string str = new string(char_arr);