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