Do these 2 statements do the same thing. I mean, can I reuse the variable m after calling free? I assume that I can't use n after calling delete. Thanks!!!
MyObject* m;
m = something;
free(m);
m=somethingElse;
MyObject* n;
n = new MyObject();
delete(m);
n=something?
MyObject* m;
m = something;
free(m);
m=somethingElse;
MyObject* n;
n = new MyObject();
delete(m);
n=something?