Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- void funkcja(double **wsk) {
- delete *wsk;
- *wsk = nullptr;
- }
- int main(int argc, char **argv) {
- double *a;
- a = new double;
- funkcja(&a);
- a == nullptr ? std::cout << "null\n" : std::cout << "not null\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement