第1题
第2题
#include<stdio.h>
void main()
{ int a[5]={2,4,6,8,10};
int *p=a,**q=&p;
printf("%d,",*(p++));
printf("%d",**q); }
A.4,4
B.2,2
C.4,5
D.2,4
第3题
#include<stdio.h>
void main()
{ int a[5]={2,4,6,8,10};
int *p=a,**q=&p;
printf("%d,",*(p++));
printf("%d",**q); }
A.4,4
B.2,2
C.4,5
D.2,4
第4题
第5题
A.a=90
B.a=100
C.a=190
D.程序不正确
第6题
A.-l
B.0
C.1
D.2
第7题
#include <stdio.h>
void prt (int *x, int*y, int*z)
{printf("%d,%d,%d\n",++*x,++*y,*(z++));}
main()
{int a=10,b=40,c=20;
prt (&a,&b,&c);prt (&a,&b,&c);}
A.11,42, 31 12,22,41
B.11,41,20 12,42,20
C.11,21,40 11,21,21
D.11,41,21 12,42,22
第8题
#include<stdio.h>
main( )
{ int a=2,b=3,P;
p=f(a,b);
printf(”%d”,p);
}
int f(a,b)
{ int c;
if(a>b)c=1;
else if(a==b)c=0;
else c=-l;
return(c);
}
A.-l
B.0
C.1
D.2
第9题
#include <stdio.h>
void swap(int *a,int *b)
{ int *t;
t=a; a=b; b=t;
}
main()
{ int i=3,j=5,*p=&i,*q=&j;
swap(p,q); printf("%d %d\n",*p,*q);
}
第10题
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!