有以下程序,程序运行后的输出结果是()。#include void fun(char *c,int d){ *c=*c+1;d=d+1;printf("%c,%c,",*c,d);}main(){ char a='A',b='a';fun(&b,a); printf("%c,%c\n",a,b);}
A. B,a,B,a
B. a,B,a,B
C. A,b,A,b
D. b,B,A,b
下面程序的运行结果是______ 。#include void f(int y,int *x){y=y+*x; *x=*x+y;}main(){ int x=2,y=4;f(y,&x);printf("%d,%d\n",x,y);}
下面程序的运行结果是______。#include void swap(int *a,int *b){int t;t=*a; *a=*b; *b=t;}main( ){int x=3,y=5,*p=&x,*q=&y;swap(p,q);printf("%d,%d\n",*p,*q);}
下列程序的输出结果是 ______ 。#includeint main( ){int x[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16},*p[4],i;for(i=0;i<4;i++){p[i]=&x[2*i+1];printf("%d,",p[i][0]);}printf("\n");return 0;}