单项选择题

有以下程序:
# include <stdio.h>
int a=1, b=2;
void fun1(int a,int b)
printf("%d%d", a, b);
void fun2()
a=3; b=4;
main()
fun1(5, 6);fun2();
printf("%d%d\n", a, b);

程序运行后的输出结果是( )。

A.1 2 5 6
B.5 6 3 4
C.5 6 1 2
D.3 4 5 6

<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: # include <stdio.h> main() (char a[5][10]= one , two , three , four , five ); int i, j; char t; for(i=0;i<4;i++) for(j=i+1;j<5;j++) if (a[i][0]>a[j][0]) t=a[i][0]; a[i][0]=a[j][0]; a[j][0]=t; ) puts(a[1]); 程序运行后的输出结果是( )。

A.fwo
B.fix
C.two
D.owo

单项选择题
有以下程序: # include <stdio.h> main() char *s= [2]34 ; int k=0, a=0; while(s[k+1]!=’ 0’) k++; if (k%2=0) a=a+(s[k]-’0’+1); continue; a=a+(s[k]-’0’); printf( k=%d a=%d n , k, a); 程序运行后的输出结果是( )。

A.k=6 a-1
B.k=3 a-14
C.k=4 a=12
D.k=5 a-15

相关试题
  • 有以下程序: # include <stdio.h>...
  • 有以下程序: # include <stdio.h>...
  • 有以下程序: # include <stdio.h>...