有以下程序void fun (int a,int b,int c){ a=456; b=567; c=678;}int main(){ int x=10, y=20,z=30;fun (x,y,z);printf("%d,/%d,%d\n",x,y,z);return 0;}输出结果是:()
A. 30,20,10
B. 10,20,30
C. 56,567,678
D. 678,567,456
以下程序运行后屏幕输出为()#includeint a=2,b=3;int max(int a,int b){int c;c=a>b?a:b;return(c);}main(){int a=4;printf("%d ",max(a,b));}
A. 3,2
B. 2
C. 3
D. 4
若有如下函数定义:int fun(){static int k=0;return ++k;}以下程序段运行后屏幕输出为( )int i;for(i=1;i<=5;i++) fun();printf("%d",fun());
A. 0
B. 1
C. 5
D. 6
以下程序的运行结果是()#define M(a,b) a*bmain(){int x=3,y=2,s1,s2;s1=M(x+y,x-y);s2=M(x-y,x+y);printf("%d,%d\n",s1,s2);}
A. -1,7
B. 5,5
C. 7,-1
D. 5,-5