I need to print elements of an array of strings, each element consisting of a single character. Generally a 1-D char array could be used but in my case I need to use strings to store these.
I've tried the same code with each element being longer than one character and it seemed to work, however with singular characters I can't figure it out.
void hands(){
char suits[4][1] = {"A", "K", "Q", "J"};
printf("%s", suits[0]);
}
I'd expect an output of "A", instead I get "AKQJ {;W?"