有以下程序#include void fun( int *p, int *q ){ int t;t = *p; *p = *q; *q=t;*q = *p;}main(){ int a=0, b=9;fun ( &a, &b );printf( "%d %d\n" , a,b );}程序的输出结果是
A. 9 0
B. 0 0
C. 9 9
D. 0 9
查看答案
有以下程序#include int k=5;void f(int *s){ *s=k; }main(){ int m=3,*p=&m;f(p);printf("%d,%d", m, *p);}程序的运行结果是
A. 5,5
B. 3,3
C. 3,5
D. 5,3
有以下程序#include int k=5;void f(int *s){ s=&k; }main(){ int m=3,*p=&m;f(p);printf("%d,%d\n", m, *p);}程序的运行结果是
A. 3,3
B. 5,5
C. 3,5
D. 5,3
有以下程序#include void fun( int *s, int t, int *k ){ int p;for( p=0, *k=p; ps[*k] ) *k = p;}main(){int a[10] = { 11,12,13,14,15,16,20,18,19,10 },k ;fun( a,10,&k );printf( "%d,%d\n",k, a[k] );}程序运行后的输出结果是
A. 6,20
B. 10,9
C. 7,20
D. 10,10
有以下程序#include main(){char *s[6] = { "ABCD", "EFGH","IJKL","MNOP","QRST","UVWX" }, **p ;int i;p = s;for( i = 0; i<4; i++ ) printf( "%s", p[i] );printf( "\n" );}程序运行后的输出结果是
ABCDEFGHIJKLMNOP
B. ABCDEFGHIJKL
C. ABCD
D. AEIM