fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int& x)
  5. {
  6. std::cout << &x << std::endl;
  7. x = 10;
  8. }
  9.  
  10. int main()
  11. {
  12. foo(*static_cast<int*>(nullptr));
  13. return 0;
  14. }
Runtime error #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0