[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Passing arrays in C
pass it as an a pointer to an array. like if u want to
pass a[10][10][10], u can prototype the function as
***a, and then pass the call the fn. with a as the
arg. I dunno if i'm COMPLETELY right, but atleast
thats how i used to pass multi-dim arrays muhself...
Nikhil.
--- Sitaram Shastri <seetu@xxxxxxxxxxxxx> wrote:
> hi all,
>
> how can i pass a pointer to a multi-dimensional
> array to a function.all i'm
> able to pass,is a pointer to a single dimension of
> the array.i want to pass
> the entire array.
>
> regards,
> sitaram shastri.
>
>
>
>
-----------------------------------------------------------------------
> LIP is all for free speech. But it was created for
> a purpose - to help
> people discuss technical programming related issues
> about Linux. If
> your messages are counterproductive to this purpose,
> your privileges to
> submit messages can and will be revoked.
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com