How does the given function improve the code versus if no function was present? double FahrenheitToCelsius(double fahrenheit) { return (fahrenheit - 32.0) * 5.0 / 9.0; } int main() { double fahrenheit; cin >> fahrenheit; int c1; int c2; int c3; c1 = FahrenheitToCelsius(fahrenheit); c2 = FahrenheitToCelsius(32.0); c3 = FahrenheitToCelsius(72.0); }单项选择题
A
The use of the function reduces the number of variables in the code
B
The use of the function decreases redundant code
C
The use of the function makes main() run faster
D
The function does not improve the code
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!