returning an array from a function
Hi, I think that I am having some conceptual problems with pointers. I have an Integer Array being created and used in a function, and I would like to return the array back into my main().
This would seem easy, but in the books they speak of using pointers instead of my array. Do I need to change it to a pointer and then return it? Please tell me what I have done wrong.
This is a sample program that does the same thing as I want.
Thanks a lot for your time! :)
for(a = 0; a < 4; a++)
x1[a] = a;
x2 = function();