
Implement gm_isdigit, your own isdigit, which reports whether a character is one of the decimal digits 0 through 9.
gm_isdigit('7')Expected result
1For your own tracking. Tests grade your code.
gm_isdigit('a')Expected result
0gm_isdigit(':')Expected result
0Expected files
isdigit.cAllowed functions
None. Write every helper yourself.
Standard C library
Implements the contract of a function from the standard C library.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement gm_isdigit, your own isdigit, which reports whether a character is one of the decimal digits 0 through 9.
gm_isdigit('7')Expected result
1For your own tracking. Tests grade your code.
gm_isdigit('a')Expected result
0gm_isdigit(':')Expected result
0Expected files
isdigit.cAllowed functions
None. Write every helper yourself.
Standard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.