0
点赞
收藏
分享

微信扫一扫

isdight,islower,isupper和tolower,toupper

转角一扇门 2022-03-24 阅读 18
c语言
一、#include <ctype.h>

int isdight(int c);:如果c是0-9的数字,isdight会返回一个随机的非零的数(取决于编译器),否则返回0;

int islower(int c);:如果c是介于'a'和'z'之间的小写字母,则会返回一个随机的非零的数(取决于编译器),否则返回0;

int isupper(int c);:如果c是介于'A'和'Z'之间的大写字母,则会返回一个随机的非零的数(取决于编译器),否则返回0;

二、<stdlib.h> and <ctype.h>

int tolower(int c);:如果c是介于'a'和'z'之间的大写字母,tolower会将其转变为对应的大写字母;

int toupper(int c);:如果c是介于'A'和'Z'之间的大写字母,toupper会将其转变为对应的小写字母;

举报

相关推荐

0 条评论