fork download
  1. #include <iostream>
  2.  
  3. int pp(int& pp){
  4. std::cout << "ok\n";
  5. return 0;
  6. }
  7.  
  8. int main(){
  9. int* p = 0;
  10. std::cout << "pre\n";
  11. pp(*p);
  12. std::cout << "post\n";
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
pre
ok
post