C语言程序设计试题及答案完整版(15)

时间: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};

达→→→→

C语言程序设计试题及答案完整版(15).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219