C语言课本习题答案..docVIP

  • 81
  • 0
  • 约 27页
  • 2016-12-11 发布于重庆
  • 举报
C语言课本习题答案.

习题一 一、简答题 顺序结构、选择(分支)结构和循环结构。编辑、编译、连接和运行 二、填空题 Ctrl+F9;Alt+F5;F2。 main(主) main(主) 任意 /* */不 ; 原程序include studio.h main{} /* this program prints the number of weeks in a year. /* ( int s s:=52; print(There are s weeks in a year); 改正程序: #include studio.h main() /* this program prints the number of weeks in a year. */ { int s; s=52; printf(There are %d weeks in a year,s); }习题二 选择题 1、C 2、B,D,F,G 3、C 4、A 5、C 6、B 填空题 1、声明;使用。 2、整型、浮点型(实型)、字符型。 3、hat_1,cat1,all, Dollar, piece_f, SIN, _? , true,FALSE. 4、A(字符),005(整型八进制),3e0(实型),”a”(字符串),\\(字符),\05(字符),1.2e+5(实型),0xf12(整型十六进制)。 5、(1)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档