Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
Is there a problem with passing them as parameters as necessary?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Well you could make variables global, but in larger programs globals can often cause bugs and other problems. I always try and use locals even in simple programs as its good practice.