以下不能正确进行字符串赋初值的语句是________
A. har str[5]="good!";
B. char str[]="good!";
C. char *str="good!";
D. char str[5]={'g','o','o','d'};
以下程序的输出结果是_________#include f(int *b, int m, int n){int i,s=0;for(i=m; i
A. 8
B. 10
C. 15
D. 18
以下程序的输出结果是___________#include #include int main(){char b1[8]="abcdefg",b2[8],*pb=b1+3;while (--pb>=b1) strcpy(b2,pb);printf("%d\n",strlen(b2));return 0;}
A. 1
B. 3
C. 7
D. 8
有以下程序#include void fun(char *c,int d){*c=*c+1;d=d+1;printf("%c,%c,",*c,d);}int main(){char a='A',b='a';fun(&b,a);printf("%c,%c\n",a,b);return 0;}程序运行后的输出结果是___
A. b,B,A,b
B,a,B,a
C. a,B,a,B
D. A,b,A,b