Hello all, i have successfully run the program but i not really understand two statement in the program.

The two statement is as below;

1. rowptr = (int **)malloc(sizeof(int **) * nrow);

Allocate nrow of array of pointer - where if nrow = 5.
The above statement is same as int *rowptr[5]; -- I don't know whether is it correct or not.

2. for (row_loop=0;row_loop<nrow;row_loop++)
{
rowptr[row_loop] = (int *)malloc(sizeof(int *) * ncol);
}

For each rowptr, allocate int * pointer pointing to ncol.

I don't know whether my understanding is correct or not. Please confirm with me whether my understanding is correct or not.


Thanks for your help.
Your help is greatly appreciated by me and others.

I don't know how to return the help you all have give. By the way, i just know say thanks to you all. Without you all, i think i not able to solve this program. This program is not assignment nor project. I just practiced it on my own.

Thanks.
Thanks.
Thanks.
Thanks.
Thanks.
Thanks.
Thanks.
Thanks.