If I allocate some raw memory with ::operator new, lets say 5*sizeof(int), is it undefined behavior if I call delete[] on the pointer?
I've been searching but didn't find anything regarding this besides that I should use delete[] on new[] and delete on new, same with operator new and operator delete.
Thanks in advance.