fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void check(int &a){
  5. a= a*5;
  6. }
  7.  
  8. int main() {
  9. // your code goes here
  10. int a =2;
  11. check(a);
  12. cout << a;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
10