您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 企业财务 > C语言习题集答案(修改版)
C语言习题集答案第三章数据类型、运算符与表达式12345678910BBACBABAAC11121314151617181920DCBACCDBCD21B第四章简单程序设计一、选择题12345678910ABBDACBABA11121314151617181920CDCDDADDCA21222324252627282930DDACDDACCC313233343536373839BCBBDBCACD二、填空题1.y%2==1或y%2!=0或!(y%2)==02.X+=1;3.6.64.a=1234■b=55.0.56.3第五章选择结构程序设计答案一、选择题12345678910BCADBCDBCB11121314CCDD二、填空题1.++&&2.103.14.5535.x20&&x30||x-1006.关系,逻辑。算术,赋值,条件,逗号7.###a=26,b=13,c=198.if(a=b){x=1;printf(“####x=%d\n”,x);}else{y=2;printf(“****y=%d\n”,y);}9.-1第六章循环1C2B3A4A5B6B7B8D9C10D11D12B13B14D15C16B17B18B19C20C21A22A23C24D25C26B27A28B29B30B31D32B33A34B35D36B37C38C39C40D1)无限次2)233)744)85)526)89217)a=2,b=18)x=89)a[i-1]a[9-i]10)=aasum/nx[i]ave第七章数组一、选择题12345678910DDBBDCABDB11121314151617181920CABCBDDBBC2122232425CACAB二、填空题1.902.QuickC3.‘\0’str1[i]-str2[i]4.65.Hello6.hane7.s=08.-850,2,09.25810.56101111.123422345612.1234524681036912154812162051015202513.max=a[0][0];if(a[i][j]max){max=a[i][j];row=i;colum=j;}14.colum=jx[i][colum]15.colum=icolum=ja[row][colum]16.i=3j=i-1a[i-1][j-1]+a[i-1][j]17.618.n%based19.(c=getchar())c–65或c–‘A’20.(c=getchar())+65或+‘A’21.5422.1223.2,1,024.22i=k-1i=0i--第八章函数一.选择题1.A2.C3.C4.B5.B6.B7.D8.C9.A10.C11.D12.D13.B14.A15.A16.D17.C18.C19.B20.B21.D22.A23.C24.B二.填空题1.8,172.1.0/(i*i)3.voidfun(double(*b)[22])或voidfun(doubleb[10][22])4.2465.56.47.p=j8.x[i][p]9.LineMax(x)10.02411.strlen(str)/212.str[j-1]13.214.215.k=p第九章预处理命令一、选择题1C2D3B4D5D6B7C8A9B10B11C12C二、填空题1.8802.53.24004.125.2126.x=9,y=57.28.99.21410.9.011.#includemath.h第十章指针1B2B3C4C5C6A7C8D9D10C11B12C13C14B15D16D17D18C19C20C21D22A23D24B25C26A27C28C29D30A31B32B33D34C35A36A37B38C39C40C41D42B43B44A45C46C47D48C49B50C第11结构体和共用体一、填空题(1)222(2)52(3)104(4)ex(5)126.0(6)7,3(7)abc,def,hi,no(8)b-day,(*b).day(9)pperson+3old=p-age(或old=q-age)q-name,q-age(10)6,5二、选择题1.C2.D3.A4.D5.C6.B7.D8.B9.B10.A11.B12.B13.C14.B15.C16.A17.D18.B19.B20.D21.C22.C23.A24.D25.B26.D27.B28.B29.B30.D31.C32.B33.A34.D35.B36.D37.A38.B39.C40.B第12章位运算1.C2.D3.D第13章文件1.顺序随机2.二进制ASCII3.字符流式
本文标题:C语言习题集答案(修改版)
链接地址:https://www.777doc.com/doc-2907845 .html