Thank you for your advice.
1. Say, further to the example discussed, if the X array passed to the sub was modified by the sub, for returning back to the calling routine, then in the calling routine, can I copy the X array back to the same column of A using the reverse statement:
A(1:,n)=X(1:)...