主页
C 语言
C ctype isdigit() 函数
demo_ref_ctype_isdigit
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char c = '8'; if (isdigit(c)) { printf("%c is a digit", c); } else { printf("%c is not a digit", c); } return 0; }
8 is a digit