[Solved] How to determine the number of appearances of a letter in a string using C language? [closed]


Change c[i]=='x' to c[i]==x

You want to compare with the variable x, not the character constant ‘x’

2

solved How to determine the number of appearances of a letter in a string using C language? [closed]