I need to implement 10 cols by a dynamic row lenght array which can hold a string. So far, i am trying to experiment by using an intiger instead of srings, for simplicity.
this is my code so far:
int** pArray = (int**)malloc(10*sizeof(int*));
for (i = 0; i < 10; i++ )
{
pArray[i] = (int*)malloc(sizeof(int));
}
so now i know i created a 10x1 array. now i need to dynamically realoc each row according to the need that arises..
at this point i am stuck. Any assistance would be much apprieciated