new is also an operator, but I was more thinking of what happens inside the code after the compiler has done it's job.
For example, we can imagine a compiler that compiles this:
class A
{...
Type: Posts; User: matsp
new is also an operator, but I was more thinking of what happens inside the code after the compiler has done it's job.
For example, we can imagine a compiler that compiles this:
class A
{...
That is correct, new "replaces" malloc in C++. However, new is quite often implemented through malloc (or sometimes the other way around), so the actual problem wouldn't really change. Since C++...
Most likely, some previous code has overwritten some data needed by malloc - malloc uses a data structure immediately before the memory you get to store some "private" stuff. If free is called, a...