void strl.ower (char str [])
{
int i;
i=0;
while (str [i]! ='\O')
{
if (________)
str [i]=_____________
i++;
}
}
參考答案:void strl.ower (char str [])
{
int i;
i=0;
while (str [i]! ='\O')
{
if (str[i]>='A' && str[i]<='Z')
str [i]=str[i]+32; //大写与小写字母应该相差97-65=32
i++;
}
}