I just want to be sure.
this is my code
int * Image = (int *)malloc(sizeof(int) * m_Width/2 * m_Height);
free(Image);
if I want to use new Instead of malloc and free instead of delete. this is what i wrote
int* Image = new int[m_Width/2 * m_Height];
delete[] Image;
Is that correct?