检查参数c是否为小写字母
#include <stdio.h> #include <ctype.h> int main(void) { char str[] = "abc ABC 123 !@#"; int i = 0; for(i;i<sizeof(str) - 1;i++) { if(islower(str[i])){ printf("%c is lower \n",str[i]); } } return 0; }
检查参数c是否为小写字母
#include <stdio.h> #include <ctype.h> int main(void) { char str[] = "abc ABC 123 !@#"; int i = 0; for(i;i<sizeof(str) - 1;i++) { if(islower(str[i])){ printf("%c is lower \n",str[i]); } } return 0; }