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