题目内容

有以下程序,程序中库函数islower(ch)用以判断ch中的字母是否为小写字母
#include<stdio.h>
#include<ctype.h>
void fun(char *P)
{int i=0;
while(p[i])
{if(p[i]==‘ ’&&islower(p[i-1]))p[i-1]=p[i-1]=‘a’+‘A’;
i++;
}
}
main()
{char s1[100]=”ab cd EFG!”;
fun(a1);printf(”%s\n”,s1);
}
程序运行后的输出结果是()。

A. ab cd EFG!
B. Ab Cd EFg!
C. aB cD EFG!
D. ab cd EFg!

查看答案
更多问题

盐酸溴已新含有

Section A Dialogue Completion
Directions: In this section, you will read 5 short incomplete dialogues between two speakers, each followed by four choices marked A, B, C, and D. Choose the answer that best suits the situation to complete the dialogue. Mark your answer on the ANSWER SHEET with a single line through the center.
Speaker A: Here's a gift for you. I bought it in China.
Speaker B: ______

A. How much did it cost?
B. Wow, it is great! Thank you.
C. It must be very expensive.
D. Sorry to have bothered you.

A.Japanese students study much harder than Columbian students.B.Columbian students sco

A. Japanese students study much harder than Columbian students.
B. Columbian students score higher than Japanese students in math.
Columbian students are more optimistic about their math skills.
D. Japanese students have better conditions for study.

A.A platform. worker.B.A computer.C.The command spot.D.A machine.

A platform. worker.
B. A computer.
C. The command spot.
D. A machine.

答案查题题库