下面程序段运行后的输出结果是( )(假设程序运行时输入5,3回车)。#include int a, b;void swap( ){int t;t=a; a=b; b=t;}int main(void){scanf("%d,%d", &a, &b);swap( );printf ("a=%d,b=%d\n",a,b);}
A. a=5,b=3
B. a=3,b=5
C. 5,3
D. 3,5
.以下程序运行后的输出结果是( )。#include fun(int a, int b){if(a>b) return a;else return b;}int main(void){int x=3,y=8,z=6,r;r=fun(fun(x,y),2*z);printf("%d\n",r);}
A. 3
B. 6
C. 8
D. 12