Re: array pointer

ratheesh k <[email protected]> Tue, 18 Jan 2011 18:53:53 +0530
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
i made a mistake  d_ptr is  int **d_ptr

On Tue, Jan 18, 2011 at 6:52 PM, ratheesh k <[email protected]> wrote:
> int  *s_ptr;
> int  *d_ptr;
> int arr[2][2]={1,2,3,4};
>
> s_ptr=*arr;  /* This is perfectly fine */
> d_ptr=arr /* this line throws a  warning: assignment from incompatible
> pointer type */
>
> What is the problem here ?
>
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html