Sign in to follow this  

C++ new/delete

This topic is 1984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Simple, fast question.

is :[CODE]
char *data=new char[256];
delete[] data;
char *data=new char[256];
delete[] data;
[/CODE]
equal to :[CODE]
char *data=new char[256];
char *data=new char[256];
delete[] data;
[/CODE]

?

Share this post


Link to post
Share on other sites
Sign in to follow this