fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void bleble (int *ptr) { ptr = nullptr; }
  5.  
  6. int main() {
  7. int *ptr = new int;
  8.  
  9. bleble(ptr);
  10. cout << (ptr == nullptr);
  11.  
  12. delete ptr;
  13. return 0;
  14. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Standard output is empty