作业帮 > 综合 > 作业

some question about C++

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/08/10 18:43:36
some question about C++
Hallo Everyone
Ich habe here some questions about C++.
What do the following Statements mean?
a) 7 / (double)2
b) (int) 14.0 / 5
c) (double)(7/3)
d) (int) (19.0/10) and
a) true && false
b) true && (true || false)
c) (5.1 < 3.1) && (3.1 < 12.3)
d) (9 % 2) || 9 % 3
Thanks for the answers!
some question about C++
sprechen sie deutsch?
a) 7 / (double)2
3.5
b) (int) 14.0 / 5
2
c) (double)(7/3)
2.333333333333333 有效位16位
d) (int) (19.0/10) and
1
a) true && !false
true
b) true && (true || false)
true
c) (5.1 < 3.1) && (3.1 < 12.3)
false
d) !(9 % 2) || 9 % 3
false