13.有定义"int a[]={1,2,3,4,5,6,7,8,9,0};",则a[*(a+a[3])]的值为6。
A. 对
B. 错
10.下面程序的运行结果是()。voidswap(int*a,int*b){int*t;t=a;a=b;b=t;}intmain(){intx=3,y=5,*p=&x,*q=&y;swap(p,q);printf("%d,%d\n",*p,*q);return0;}
A. 3,3
B. 5,5
C. 5,3
D. 3,5
5.有以下定义语句,则调用函数的正确语句是()。int b[4][5];void fun(int *,int n);
A. fun(b,20);
B. fun(b[0],20);
C. fun(b[0][0],20);
D. fun(&b,20);
9.下面程序的运行结果是()。#includeintmain(){inti,j,k=0;inta[3][4]={1,3,5,7,9,11,13,15,17,19,21,23},(*p)[4]=a;for(i=0;i<3;i++)for(j=0;j<2;j++)k+=*(*(p+i)+j);printf("%d\n",k);return0;}
A. 60
B. 68
C. 99
D. 108