isupper C · 字符判断
判断一个字符是否为大写字母。
怎么用
int r = isupper(字符);
小例子
#include <stdio.h>
#include <ctype.h>
int main(void) {
printf("%d", isupper('A'));
return 0;
}
运行结果
输出非 0(真)
提醒:'a' 会返回 0;和 toupper/tolower 配合使用
在代码里遇到不认识的词?打开代码点读机,点一下就懂 → ← C全部词条