单选题有以下程序 #include 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++;}printf(); } 若运行时从键盘上输入OPEN THE DOOR<回车>,程序的输出结果是(  )。A OPEN THE DOORB OPEN tHE dOORC open the doorD Ope

题目
单选题
有以下程序 #include  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++;  }  printf(); } 若运行时从键盘上输入OPEN THE DOOR<回车>,程序的输出结果是(  )。
A

OPEN THE DOOR

B

OPEN tHE dOOR

C

open the door

D

Open The Door


相似考题