单选题
有以下程序:
#include<stdio.h>
char
fun(char*c)
{ if( *c<='Z'&&*c>='A')
*c-='A'-'a';
return*c;
}
main()
{ char s[81], *p=s;
gets(s);
while(*p)
{ *p=fun(p); putchar(*p);
p++; }
putchar('/n');
}
若运行时从键盘输入:OPEN THE DOOR<CR>(此处<CR>代表Enter键),则程序运行后的输出结果是
- A.oPEN tHE dOOR
- B.open the door
- C.OPEN THE DOOR
- D.Open The Door