下述程序的输出结果是( )。
#include<stdio.h>
void main
{ int b[6]={2,4,6,8,10,12);
int*p=b,**q=&p;
printf("%d,",*(p++));
printf("%d,",**q);
}
A.4,4
B.2,2
C.4,5
D.2,4
第1题:
下列程序的输出结果是( )。 #include<stdio.h> void main(). { int b[6]={2,4,6,8,10,12}; int*p=b,**q=&p; printf("%d", *(p++)); printf("%d,",**q); }
A.4,4
B.2,2
C.4,5
D.2,4
第2题:
以下程序的输出结果是 #include<stdio.h> int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; main() { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d\n”,*p); free(p);} f(int *s,intp [][3]) { *s=p[1][1];}
A.1
B.4
C.7
D.5
第3题:
以下程序的输出结果是( )。 include<stdio.h> void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main() {int i=3,j=5,*p=&i,*q=&j; swap(p,q);printf("%d %d\n",*p,*q); }
第4题:
以下程序的输出结果是 #include<stdio.h> int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; main() { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d\n",*p); free(p);} f(int *s, int p[][3]) { *s=p[1][1];}
A.1
B.4
C.7
D.5
第5题:
下列程序的输出结果是( )。 #include<stdio.h> void main() { int b[6]={2,4,6,8,10,12}; int *p=b,**q=&p; printf("%d",*(p++)); printf("%d,",**q); }
A.4,4
B.2,2
C.4,5
D.2,4