+ 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

15th Dec 2021, 7:24 PM
M Samiul Hasnat
M Samiul Hasnat - avatar
1 Odpowiedź
0
Martin Taylor as a beginner I don't know the difference between output and return. :(
16th Dec 2021, 2:23 AM
M Samiul Hasnat
M Samiul Hasnat - avatar