sorry, i forgot to correct line7:
char arr1[2] = {A,B};
And yes, it works if i put the " ' " around the letters:
char arr1[2] = {'A','B'};
but is the array for example sortable now? say i have
char arr1[20] = {'A','B','D','K','J','O',.............};
will i be able to sort the array alphabetically now?
Doing char arr1[2] = { A, B }; doesn't make sense since A and B are both uninitialized variables. However, using the quotes makes an array of the literal characters which you could sort.