填空题

下面程序的输出结果是 【8】 。 #include <iostream> using namespace std; int x; void funA(int&,int); void funB(int,int&); int main ( ) { int first; int second=5; x=6; funA(first,second) ; funB(first,second) ; cout<<first<<" "<<second<<" "<<x<<end1; return 0; } void funA(int &a,int b) { int first; first=a+b; a=2*b; b=first+4; } void funB(int u, int &v) { int second; second=x; v=second+4; x=u+v; }

【参考答案】

10 10 20