I have just started working with functions. I am trying to clarify how to pass data between these functions without declaring global variables. I am also trying to discover how to pass file pointers between functions.
The code I attached below opnes 3 files. If I wanted to open these 3 files in a separte function (say will call it "open_files).
In the stock_report function, I want to call the open files function. How do I pass the file pointer into the stock_report function so that I can use the open_files function?
This progam has 2 input files but I could not figure out how to attach more than 1 file to this post.
Thanks again as always,