C++ Logo
C++二级在线二级在线
首页选择题程序题成为会员帮助其他科目

选择题

12. 有如下程序: #include <iostream> using namespace std; void f1(int& x) { x++; } void f2(int x) { x++; } int main(){ int x=10,y=12; f1(x); f2(y); cout<<x-y<<endl; return 0; } 运行后的输出结果是______。

上一题下一题