C语言程序设计试题及答案完整版(15)
时间:2025-05-11
时间:2025-05-11
鑫鑫打印社印 2014年~2015学年《C语言程序设计》复习题
a=6 a=8 26.已知
b=21 b=31
c=11 27. 下列程序
#define MAX 10
c=21 main()
{
sum=1; for(i=0;i<MAX;i++) sum-=a[i];
printf(“SUM=%d”,sum); }
: A.SUM=55 B.SUM=-54 C.SUM=-55 D.SUM=54 void inv(int*x,int n) 式 28. 下列程序 name {int *p,t,*i,*j,m=(n-1)/2;
i=x;
name+2 j=x+n-1;
p=x+m;
name+2 for(;i<p;i++,j--)
{ t=*i;
name+2) *i=*j;
*j=t;
a=7 b=17 c=11 a=9 b=38 c=21 struct student {char ﹡name; int student_n; char grade; };
struct student temp,*p=&temp; =”chou”;
则下面不正确的是 表值 A.pchou B.(*p)h C.*pe D.*(po
int
i,sum,a[ ]={1,2,3,4,5,6,7,8,9,10};
达→→→→
上一篇:芬兰珊纳特赛罗市政中心
下一篇:古式抓周具体的操作