Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. void funkcja(double **wsk) {
  4. delete *wsk;
  5. *wsk = nullptr;
  6. }
  7.  
  8. int main(int argc, char **argv) {
  9. double *a;
  10. a = new double;
  11.  
  12. funkcja(&a);
  13.  
  14. a == nullptr ? std::cout << "null\n" : std::cout << "not null\n";
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement