+ 1
Make a function which takes a character. If the character is a digit, output 1 and if English alphabet then output 0.
I used this function but I don't know how it works? It is only taking care of digits, not the alphabet. int is_digit(char c) { return ('0' <= c) && (c <= '9'); } https://www.sololearn.com/discuss/2942686/?ref=app
3 Answers
0
Martin Taylor as a beginner I don't know the difference between output and return. :(