I can allocate a multi-subscripted array using the new operator like this,
but how do i write it using the malloc function instead.
Code:float (*ptr)[3] = NULL; int size = 64; void create(void) { ptr = new float [size][3]; } void destroy(void) { if(ptr) { delete [] ptr; ptr = NULL; } }




Reply With Quote