fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(int &x, int &y){
  5. x*=2;
  6. y*=3;
  7. }
  8.  
  9. int main() {
  10. int a=1;
  11. int b=2;
  12.  
  13. f(a,b);
  14. cout << a << b;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
26