If I have
What have I created? What's array pointing to?Code:char **array = malloc (sizeof *array);
If I write
How many array[row] = malloc (size); can I write, given that row is increased each time? Is it correct to do that?Code:size_t row; /* defined before calling malloc */ size_t size; /* defined later before calling malloc */ . . . array[row] = malloc (size); . . . ++row;



LinkBack URL
About LinkBacks



