下面程序段运行后的输出结果是( )(假设程序运行时输入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
有以下程序# include # define N 5# define M N+1# define f(x) (x*M)int main(){int i1,i2;i1 = f(2) ;i2 = f(1+1) ;printf("%d,%d\n", i1, i2);return 0;}
A. 12,12
B. 11,7
C. 11,11
D. 12,7