hey
i think this is what your looking for

>From: "chinoy_826" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [c-prog] function call with array
>Date: Tue, 20 Mar 2007 07:48:51 -0000
>
>I kind of want to make  a clarification for the calling a function
>array:
>
>int Array(char []);    /*function proto*/
>
>int Array[10];

try not name a variable same as function name so instead here you would say
int example[10];

>Array(example,10);  /*call function*/

when passing an array to a function you only need the array name as it acts 
as a pointer to location 0  anyway

Array(example);

also u have the prototype declaring that the function will return an integer 
so to use the integer value that it creates you could call it this way

int answer = 0;
answer = array(example);

>
>int Array(example [])  /*function*/
int result = 0;
//code
then in this function you would use return and the integer

return result;
>
>is this correct. I kind of forget. I'm a noob by the way
>
hope this helps im still very new to all this too

_________________________________________________________________
i'm making a difference. Make every IM count for the cause of your choice. 
Join Now. 
http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://im.live.com/messenger/im/home/?source=hmtagline



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to