Im trying to compile the program but keep getting this error message below: Can someone tell me what this means please. The carat arrow is supposed to be pointing at "char" and "ch" that is where they say the error is.
readability.c:36:9: error: expected expression
char ch = s[i];
^
readability.c:38:17: error: use of undeclared identifier 'ch'
if (isalpha(ch))
^
Below is the part of the program that has the error:
char ch = s[i];
if (isalpha(ch))
{
letters++;
}
if (isspace(ch))
{
words++;
}
if (ch == '.' || ch == '!' || ch == '?')
^
) pointing to in the erros? Very significant information. How iss
declared? Consider editing the question and including the first 8 lines of the code, because I don't see enough to go on. The second error on line 17 is presumably because the declaration of ch on line 9 failed.