Files

30 lines
497 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### 参考答案
#### **一、 填空题**
1. 变量
2. `int`
3. `double`
4. 赋值
5. `100`
6. `+=`
7. `const`
#### **二、 单项选择题**
1. C (变量名不能以数字开头)
2. C
3. B
4. B
5. C
6. D (`count = 1;` 是直接赋值,不是在原有基础上加1)
#### **三、 判断题**
1. √
2. × (在C++中 `=` 是赋值,`==` 才是判断相等)
3. × (常量必须在定义时就初始化)
4. × (未初始化的变量里存放的是不确定的“垃圾值”)
5. √
6. √