二级 C 语言程序设计教程课后习题答案(高教版)刊登日期:3 月 3 日 已有 4929 位读者读过此文第一章【1-1】
exe【1-2】
exe 【1-3】顺序,分枝(选取),循环第二章【2-1】B 【2-2】D【2-3】B【2-4】A【2-5】C【2-6】A【2-7】B【2-8】B【2-9】A【2-10】C【2-11】B【2-12】B【2-13】A【2-14】11,12【2-15】4
2【2-16】{,},定义阐明,执行语句【2-17】核心字,顾客标记符【2-18】int,float,double【2-19】float a=b=1;【2-20】存贮单元【2-21】3
5【2-22】a*b/c,a/c*b,b/c*a【2-23】把 10 给予变量 s【2-24】bit,0/1【2-25】8,127,01111111,-128,10000000(补码) 【2-26】32767,-32768,1111,0000【2-27】8,10,16【2-28-1】(错误)#include stdio
h;main() / * main function * / float r,s;/*/*r is radius*/,/* s is area of circular */*/ r=5
0; s=3
14159*r*r; printf("%f\n",s)【2-28-2】(对的)#include stdio
h;main() /* main function */ {float r,s;/* r is radius,s is area of circular */ r=5
0; s=3
14159*r*r; printf("%f\n",s); }【2-29-1】(错误)#include stdio
hmain /* main function */{ float a,b