members plz help me..

while defining 2D array through pointers we must know the maximum limit of one expression like:

int *ptr[x],here x should be known and we can further allocate the memory through malloc function.

can anyone plz tell me how can we define a pointer in which both limits can be entered by user?

thanks in advance!

while defining 2D array through pointers we must know the maximum limit of one expression like:

int *ptr[x],here x should be known and we can further allocate the memory through malloc function.

can anyone plz tell me how can we define a pointer in which both limits can be entered by user?

thanks in advance!