fork download
  1. #include <iostream>
  2. using namespace std;
  3. void func(int x) {
  4.  
  5. x = x * 2;
  6.  
  7. }
  8.  
  9. int main() {
  10.  
  11. int numero = 5;
  12.  
  13. func(numero);
  14.  
  15. cout << numero;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
5