Function and returning arrays

Hello! I have a doubt, hope you guys can help me.

In the program I'm coding right now, I will have to move some arrays from one function to another, and also to the main. Especially, in one part of the program a function has to send two arrays to a different function.

How can this be done? Can I use a pass by reference? Has it to be made with pointers (I still don't know how pointers work btw :P).

Thank you for your time!
Last edited on
Can you use a structure? where you will declare the two or more arrays in, and return the structure object.

Aceix
I haven't used structures yet. What do you recommend me, looking for other ways or starting to learn about structures?
Yes.

Aceix
Topic archived. No new replies allowed.