Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Anything wrong with this code? T *p = 0; delete p;
Anything wrong with this code?
T *p = 0;
delete p;
✍: Guest
Yes, the program will crash in an attempt to delete a null pointer.
2012-03-05, 4690👍, 0💬
Popular Posts:
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
Why does malloc(0) return valid memory address? What's the use? malloc(0) does not return a non-NULL...
What Happens to Your Transactions When ERROR 1213 Occurred? - MySQL FAQs - Transaction Management: C...
What is ISO? ISO 9000 is a family of standards for quality management systems. ISO 9000 is maintaine...
How To Get the Minimum or Maximum Value of an Array? - PHP Script Tips - PHP Built-in Functions for ...