Categories

Jun 11 in C++

Q: What is wrong with this code?

T *p = 0;

delete p;

1 Answer

Jun 11

In the above code, the pointer is a null pointer. Hence automatically, the program will crash in an attempt to delete the null pointer.

Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jul 16, 2019 in C++
Jun 15 in C++
Jun 11 in C++
...