填空题
若有以下定义,则使指针p指向值为35的数组元素的语句是______。
int a[10]=14,27,47,29,35,21,49,71,*p;
【参考答案】
p=a+4或p=&a[4]。
热门
试题
填空题
fun1函数的功能是将3个整数按由大到小的顺序调整后依次放入a、b、c3个变量中,a中放最大数,fun2函数的功能是交换两个变量中的值。补足所缺语句。 fun2(int*x,int*y) int t; t=*x;*x=*y;*y=t; fun1(int*p1,int*p2,int*p3) if(*p3>*p2) fun2(*P2,*p3); if(*p1<*p3) fun2(______); if(*p1<*p2) fun2(______); main() int a,b,c; scanf( %d%d%d ,&a,&b,&c) ; fun1(&a,&b,&c) ; printf( %d,%d,%d n ,a,b,c) ;