填空题
写出下列程序的执行结果是:__________________。#includeusing namespace std;void func( int, int, int & );void main(){ int x=0 , y=1 , z=2; func( 1 , 2 , x ); func( x + y , y , y ); func( z , x + y , z ); cout << x << "," << y << ","<< z << endl ;}void func( int a , int b , int &c ){ b += a ; c = b - a ; }
填空题
写出下列程序的执行结果是:__________________。#includeusing namespace std;void func( int, int, int * ) ;void main(){ int x, y, z; func( 5, 6, &x ); func( 7, x, &y ); func( x, y, &z ); cout << x << "," << y << ","<< z << endl;}void func( int a , int b , int *c ){ b += a ; *c = b - a ; }
套餐购买该问题答案仅对会员开放,欢迎开通会员 ¥ 19.9
0.64/天
1个月(不限次)
¥ 19.9
1000次
(不限时)
¥ 29.9
0.32/天
3个月(不限次)
¥ 59.9
0.16/天
1年(不限次)
立即支付