‹ 上一题 下一题 ›

g4-04100. GESP-4级-2026-06-单选-第02题 未做

1000 ms 256 MB 测试点 ? GESPGESP-42026-06单选客观题4级·函数函数定义与调用

下面程序想通过函数计算三门课总分,横线处应填入的是( )。

int sumScore(int a, int b, int c) {
    return a + b + c;
}

int main() {
    int chinese = 88, math = 95, english = 90;
    int total = __________;
    cout << total;
    return 0;
}
  • A. sumScore
  • B. sumScore(chinese, math, english)
  • C. sumScore(int chinese, int math, int english)
  • D. sumScore(a, b, c)
未选择
输入
输出

            
答案