以下程序的输出结果是()# includefunc(int a,int b){ int temp=a; a=b; b=temp; }int main(){ int x,y; x=10;y=20; func(x,y); printf("%d,%d\n",x,y);}
A. 10,10
B. 10,20
C. 20,10
D. 20,20
以下程序的输出结果是()# includeint f(int ,int );int main( ){ int i=2,p;p=f(i,i+1);printf("%d\n",p);return 0;}int f(int a,int b){ int c;c=a;if(a>b) c=1;else if(a==b) c=0;else c=-1;return c;}
A. -1
B. 0
C. 1
D. 2