I am writing a program in which several lines are entered, and it is necessary to enter them into the array. The input is normal, but then I have to work with individual characters in the rows of the array. How to compare a single string character with a string character from an array? (I tried str [0] == str [i] [0], but it doesn't work that way)
str[0] == str[i][0]what is str - an array or a string. And what is your string?char*? - Anton Shchyrov