填空题

以下程序运行后的输出结果是 【7】 。 void fun(int x, int y) { x=x+y; y=x-y; x=x-y; printf("% d, % d, ", x, y); } main() { int x=2, y=3; fun(x, y); printf("% d, % d\n", x, y); }

【参考答案】

C, B, B, C
<上一题 目录 下一题>
热门 试题

填空题
请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。【5】 (double, double);main(){ double x, y;scanf( % lf % lf , &x, &y);printf( % 1f n , max(x, y));}double max(double a, double b){ return(a>b a:b); }
单项选择题
有以下程序: # define N 20 fun(int a[], int n, int m) { int i, j; for(i=m; i>=n; i--)a[i+1]=a[i]; } main() { int i, a[N]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; fun(a, 2, 9); for(i=0; i<5; i++)printf( % d , a[i]); } 程序运行后的输出结果是______。
A.10234
B.12344
C.12334
D.12234
相关试题
  • 有一种攻击是针对网络低层协议而不是针对某...
  • 以下程序运行后的输出结果是 【14】 。...
  • 以下程序中给指针p分配3个double型动态内...
  • 有以下程序:# define f(x)x*xmain(...
  • 以下程序中,for循环体执行的次数是 【1...