以下程序的输出结果是()void sub(int x,int y,int *z){ *z=y-x; }main(){ int a,b,c;sub(10,5,&a); sub(7,a,&b); sub(a,b,&c);printf("%d,%d,%d\n",a,b,c);}
A. 5,2,3
B. -5,-12,-7
C. -5,-12,-17
D. 5,-2,-7
查看答案
以下程序的输出结果是()main(){ int k=2,m=4,n=6;int *pb=&k,*pm=&m,*p;*(p=&n)=*pk*(*pm);printf("%d\n",n);}
A. 4
B. 6
C. 8
D. 10
以下程序的输出结果是()void prtv(int *x){ printf("%d\n",++*x); }main(){ int a=25;prtv(&a);}
A. 23
B. 24
C. 25
D. 26
以下程序的输出结果是()main(){ int **k, *a b=100;a=&b; k=&a;printf("%d\n",**k);}
A. 运行出错
B. 100
C. a的地址
D. b的地址
以下程序的输出结果是()void fun(float *a,float *b){ float w;*a=*a+*a;w=*a;*a=*b;*b=w;}main(){ float x=2.0,y=3.0;float *px=&x,*py=&y;fun(px,py);printf("%2.0f,%2.0f\n",x,y);}
A. 4,3
B. 2,3
C. 3,4
D. 3,2