hi all

am havin a problem with memory allocation of 2d array

can any body help me out ...

it goes like this

char ** a;

in a loop for each time

a[i] = new char[strlen(name)+1];



in a loop i deallocate it with

delete[] a[i];

after the loop

delete [] a;

can any body help me with this ????
thanks in advance...