以下程序的输出结果是________#include char cchar(char ch){if(ch>='A'&&ch<='Z') ch=ch-'A'+'a';return ch;}int main(){char s[]="ABC+abc=defDEF",*p=s;while(*p){*p=cchar(*p);p++;}printf("%s\n",s);return 0;}
A. abc+ABC=DEFdef
B. abc+abc=defdef
C. abcaABCDEFdef
D. abcabcdefdef
以下程序调用findmax函数返回数组中的最大值。#include findmax(int *a,int n){int *p,*s;for(p=a,s=a; p-a
A. p>s
B. *p>*s
C. a[p]>a[s]
D. p-a>p-s
以下程序的输出结果是________#include int main(){char ch[3][5]= {"AAAA","BBB","CC"};printf("\"%s\"\n",ch[1]);return 0;}
A. "AAAA"
B. "BBB"
C. "BBBCC"
D. "CC"
以下不能正确进行字符串赋初值的语句是________
A. har str[5]="good!";
B. char str[]="good!";
C. char *str="good!";
D. char str[5]={'g','o','o','d'};