分析以下C++程序的输出结果,两次cout的输出依次为?
#include <iostream>
using namespace std;
void func(int a, int& b) {
a++;
b++;
cout << a << "," << b << endl;
}
int main() {
int x = 1, y = 2;
func(x, y);
cout << x << "," << y << endl;
return 0;
}
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析