当前位置:网站首页>[take you to learn C, take you to fly] branch structure in Chapter 3 of C language programming (3rd Edition) of Zhejiang University Edition (exercise 3)
[take you to learn C, take you to fly] branch structure in Chapter 3 of C language programming (3rd Edition) of Zhejiang University Edition (exercise 3)
2022-07-22 19:38:00 【Try to be beautiful】
Summary of single choice questions :
0. Variable definitions int a, b = 0; answer :a The initial value of is uncertain ,b The initial value of 0.
1. Be careful break This detail ;
2. Be careful case usage , First of all case Can't calculate %2 no way second case The expression cannot be repeated
3.else This In the nearest if And there's no else Match the back of
choose B
B. stay switch In the sentence , Not necessarily break sentence
choose D No attention break
answer :32,4646,585858
If input 32, that a The value of is 32, The first two if Statement condition does not hold , The last one is established , Print 32.
If input 46, that a The value of is 46 2 individual if Statement conditions are true , Print the 2 Time a Value , therefore 4646.
If input 58, that a The value of is 58,3 individual if Statement conditions are true , Print the 3 Time a Value , therefore 585858.
analysis :
If input 32, that a The value of is 32, The first two if Statement condition does not hold , The last one is established , Print 32.
If input 58, that a The value of is 58,3 individual if Statement conditions are true , Print the 3 Time a Value , therefore 585858. author :rubyhan1314 https://www.bilibili.com/read/cv16351931?spm_id_from=333.999.0.0 Source :bilibili
No, break
right key :onetwo
x=0 It's assignment distinguish x==0
only one break , therefore
answer :7
边栏推荐
- STM32中什么是预分频
- MFC dialog program only runs a simple example of a single instance
- 他的一只鸟,卖了6000万 ——明清大家八大山人藏品发售
- 7.21 permutation and binary
- 十年架构五年生活-05第一次出差
- Grafana panel - about conversion
- 7.18 number of square arrays
- How many key precautions are there in the process of project implementation?
- Force deduction solution summary 648 word replacement
- el-table获取当前行index的方法
猜你喜欢
JS advanced - understanding of functions
Flutter's first program Hello world!
Traversing an array with a pointer
Don't let fear of marriage kill your happiness!
Connectivity of digraph
Jackson parsing JSON detailed tutorial
“先导杯”来啦!召唤科学计算界的最强大脑,36万奖池等你来拿
PHP implementation deletes a value in a one-dimensional array
QT中多线程的使用
Research on the principle of Tencent persistence framework mmkv
随机推荐
什么是“实时”
Grafana panel - about conversion
7.17 minimum ticket price
In his early 30s, he became a doctoral director of Fudan University. Chen Siming: I want to write both codes and poems
博士申请 | 香港大学倪卓娴教授招收物联网与机器学习方向全奖博士生
Swagger UI introduction and common notes
Bean 的作用域和生命周期
关于红队方面的学习资料
el-table获取当前行index的方法
项目执行过程中有几个关键注意事项?
Force deduction solution summary 735 planetary collision
Encryption and decryption of 535 tinyurl
7.17 最低票价
Idea Quick Start Guide
DOM add
Force deduction solution summary 1200 minimum absolute difference
Data Lake (18): Flink and iceberg integrate SQL API operations
How to adjust the spacing and edge distance of MATLAB plot subgraph (solved)
Research on the principle of Tencent persistence framework mmkv
Ten year structure five year Life-05 first business trip