#GESP4248. [GESP]L4-202609-Q4248-S

[GESP]L4-202609-Q4248-S

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

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