有以下程序Void fun1(char*p){ char *q;q=p;while(*q!=′\0′){ (*q)++; q++;}}main(){char a[]={″Program″},*p;p=&a[3];fun1(p);printf(″%s\n″,a);}程序执行后的输出结果是()
A. Prohsbn
B. Prphsbn
C. Progsbn
D. Program
有以下程序#includeVoid fun(int *a,int *b){ int *c;c=a;a=b;b=c;}main(){ int x=3,y=5,*p=&x,*q=&y;fun(p,q);printf(“%d,%d,”,*p,*q);fun(& x,& y);printf(“%d,%d\n”,*p,*q);}程序运行后的输出结果是()
A. 3,5,5,3
B. 3,5,3,5
C. 5,3,3,5
D. 5,3,5,3
有以下程序Void swap(char *x,char *y){chart;t=*x;*x=*y;*y=t;}main(){ char *s1=″abc″,*s2=″123″;swap(s1,s2);printf(″%s,%s\n″,s1,s2);}程序执行后的输出结果是()
A. 123,abc
B. abc,123
C. 1bc,a23
D. 321,cba