1

I don't know what you mean by "isn't working," but I do see a logic error in your loop declaration. s[j]<m means that your loop will run as long as the numerical value of the character at s[j] is less than the length of s, since m = strlen(s). What you want to do is run the loop until j is no longer less than m (j < m), meaning that your loop ...


Only top voted, non community-wiki answers of a minimum length are eligible