Hello!
Is it correct that following yields undefined behavior:
void * something = NULL;
char * buffer = new char[10];
something = buffer;
buffer = NULL;
delete [] something; // undefined??
Do I first need to cast something to char * ?
Thank you!