单项选择题

有以下程序:
#include<stdio.h>
#define N 8
void fun(int*x,int i)
*x=*(x+i);
main()
int a[N]=1,2,3,4,5,6,7,8),i;
fun(a,2);
for(i=0;i<N/2;i++)
printf("%d",a[i]);
print*r(”\n”);
程序运行后的输出结果是( )。

A.1313
B.2234
C.3234
D.1234
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include<stdio.h> #include<string.h> struct A int a;char b[10];double c;; void f(struct A t); main() struct A a= 1001 , ZhangDa ,1098,0; f(a);printf( %d,%s,%6.1f n ,a.a,a.b,a.c); void f(struct A t) (t.a=1002;strcpy(t.b, ChangRong );t.c=1202.0;) 程序运行后的输出结果是( )。
A.1001,ZhangDa,1098.0
B.1002,ChangRong,1202.0
C.1001,ChangRong,1098.0
D.1002,ZhangDa,1202.0
单项选择题
有以下程序: #include<stdio.h> int fun( ) static int x=1; x*=2;return x; main() int i,s=1; for(i=1;i<=2;i++) s=fun( ); printf %d n ,s; 程序运行后的输出结果是( )。
A.0
B.1
C.4
D.8
相关试题
  • 有以下程序: #include<stdio.h> voi...
  • 有以下程序: #include<stdio.h> int...
  • 有以下程序: #include<stdio.h> mai...
  • 有以下程序: #include<stdio.h> mai...