执行下面程序后,输出结果是( )。
int score = 60;
void update(int &score) {
score += 5;
}
int main() {
int score = 80;
update(score);
cout << score << " " << ::score;
return 0;
}
- A. 85 60
- B. 80 65
- C. 85 65
- D. 80 60
g4-04128.in输出g4-04128.out执行下面程序后,输出结果是( )。
int score = 60;
void update(int &score) {
score += 5;
}
int main() {
int score = 80;
update(score);
cout << score << " " << ::score;
return 0;
}