Jump to content
xisto Community
Sign in to follow this  
aloKNsh

Pass An Array And A Function i wanna know how to access it via array and a function

Recommended Posts

Hey there can any one tell me how to get it in as i got this as a school assins. and the whole project on it but i am sure i will be able to fdo it but can any one tell me how to do this specific job and if possible then give me or provide me with a tut. a small one not a big as an epicthank you very much and hope to get the answer soon

Share this post


Link to post
Share on other sites

The topic title and topic sub-title do not explain exactly what you want, neither does your post. You also didn't provide which language exactly it is that you are working in.Do you mean how to pass an array by reference into a function so that you can modify the contents of the array within the function? Languages that support passy-by-reference usually use the ampersand symbol (&) to pass a variable by reference. Make sure that in the declaration of the function, that the parameter that takes in an array has an ampersand (before the variable name).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.