For example,
char* str = "Hi, there!";
delete str;
I understand I shouldn't use delete str here. But I don't understand why delete str will make program crash? Thanks for your advices.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 17
Thread: Why does it crash?Threaded View
|
Click Here to Expand Forum to Full Width |