hello , this is my first post here and i hope i can be helpful around here, so here is my question

lets say that i have a multidimensional array defined as char names[1] [1] , the first column is to write the name of the person and the second column is to write the surname. After i write the name, this is where the question begins actually, for every consonant i must replace it by 0 and for every vowel i must put 1 , for example, if i have a name such as Jack, it must be 0100 ,

i've tried to write something on my own , but it didn't work

my guess is that if i can find the number of the characters in the name entered, i can replace them by writing a for loop and a switch