单项选择题

有以下程序:
void ss(char*s, char t)
while(*s)
if(*s==t)*s=t='a'+'A';
s++;
main()
char str1[100]="abcddfefdbd", c='d';
ss(str1, c); printf("%s\n", str1);
程序运行后的输出结果是()

A. ABCDDEFEDBD
B. abcDDfefDbD
C. abcAAfefAbA
D. Abcddfefdbd

<上一题 目录 下一题>
热门 试题

单项选择题
现有如下程序段: #include stdio.h main() int k[30]=12, 324, 45, 6, 768, 98, 21, 34, 453, 456; int count=0, i=0; while(k[i]) if(k[i] %2==0||k[i]%5==0) count++; i++; printf( %d, % d n , count, i); 则程序段的输出结果为()

A. 7, 8
B. 8, 8
C. 7, 10
D. 8, 10

单项选择题
以下程序运行后的输出结果是() #include< string.h> void f(char*s, char*t) char k; k=*s; *s=*t; *t=k; s++; t--; if(*s)f(s, t); main() char str[10]= welcome , *p; p=str+strlen(str) 2+1; f(p, p-2); printf( %s n , str);

A. eelcomw
B. weoclme
C. welcome
D. emoclew

相关试题
  • 以下程序用来判断指定文件是否能正常打开。...
  • 以下程序的输出结果是______。 #in...
  • 设有定义 struct int a; float b; ...
  • 以下程序运行后的输出结果是______。...
  • 以下程序的输出结果是______。 #in...