Kunal Gangakhedkar wrote:
> In this case, what you need to do is advance the arg pointer.
> Something like
>
> for( i =0 ; i < 4; i++)
> {
> if((*(arg + i) = (char *)malloc(n * sizeof(char))) == NULL)LHS should be *(arg + i * sizeof(char *)) As pointers(arg is pointer to pointer) are NOT 1 byte long. Size depends on system. Generally 4 byte. Amish.

