14000. [GESP202609 四级 C++] 第 5 题

[GESP202609 四级 C++] 第 5 题

执行下面程序后,输出结果是(  )。

int score = 60;

void update(int &score) {
    score += 5;
}

int main() {
    int score = 80;
    update(score);
    cout << score << " " << ::score;
    return 0;
}

{{ select(1) }}

  • 85 60

  • 80 65

  • 85 65

  • 80 60