Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

Answer:
You can copy them into global variables in the main() function, then have your other functions access those global variables. Global variables should generally be avoided, however.
First answer by Gpvprasad. Last edit by Robogymnast. Contributor trust: 65 [recommend contributor recommended]. Question popularity: 1 [recommend question].