fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int& ar)
  5. {
  6. std::cout << &ar << '\n';
  7. }
  8.  
  9. int main()
  10. {
  11. int a = 1;
  12. std::cout << &a << '\n';
  13. foo(a);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0xbfe6fbec
0xbfe6fbec