Let's say I have a mian function that calls a subroutine. This subroutine returns an array. What is the best way to go about doing this? Can I initailize the array in the subroutine? Should I have the subroutine return one element at a time, or is there a way I can have it return the entire array all at once? Would it best to make use of pointers? Any advice?

thanks,
thetinman