参考代码:
#include<stdio.h>
int lower(int c)
{
return c >= 'A' && c<= 'Z' ? c - 'A' + 'a' : c;
}
int main()
{
char c = 'B';
printf("%c", lower(c));
return 0;
}
参考代码:
#include<stdio.h>
int lower(int c)
{
return c >= 'A' && c<= 'Z' ? c - 'A' + 'a' : c;
}
int main()
{
char c = 'B';
printf("%c", lower(c));
return 0;
}