33,311
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
void big_lower(char *ops);
int main(void)
{
char *src = "abcdefghIJKlmnopq";
big_lower(src);
puts(src);
return 0;
}
void big_lower(char *ops)
{
while(*ops)
{
if (*ops >= 'a' && *ops <= 'z')
{
*ops -= 32;
}
ops++;
}
}