解释都在注释里,我用英文写的。#include void run (char *str){int p = 0, count = 0;while (str[p]) //not the end of the string{if (str[p] >= 'A' && str[p] <= 'Z') //if it's upper case{str[p] += 'a' - 'A'; //make it lowercount++; //increase the count}p++; //move to the next char}printf ("str = %s\n", str);printf ("count = %d\n", count);}int main(){char str[] = "asdfKIEKK";run (str);return 0;}