Why does this give me a memory error?
char* aVar= new char;
itoa(2, aVar, 10);
delete aVar;
Does itoa
delete the aVar
? How to know if a C++ function deletes the pointer, is there a convention about that?
If I do this then error doesn't occur:
char* aVar= new char;
delete aVar;