What would you like to do?

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

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

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.
1 person found this useful
Thanks for the feedback!

What are command line arguments?

  Command line arguments are provided at the time of running the program.   Example: Suppose that your program needs input name and its value then running it from comma

How can you pass enum datatype as argument to function in c?

  Answer   Here is the simple code, which demonstrates how you can use enum as function argument in c. =======   #include // Enum declaration for power stat

What is Socrates function argument?

1. Everything has a functionthat it alone can do or that ir does  better than anything else (ergon)   2. The virtue/ experience of a thing is that property that enables 

What happen when a c program passes an array as a function argument?

When an array name is passed as a function argument, the address of the first element is passed to the function. In a way, this is implicit call by reference. The receiving fu

The address of an array can be passed as an argument to a function?

Yes, it can. It allows to save a lot of memory because you do need to copy all data, you just use the direct address. You can do in at least two ways. One way is to use pointe

How many argument does the IF function have?

three parts

What is implied by the argument of the function?

A function (also known as procedure, subroutine, and - inobject-oriented languages - as a method) lets you do repetitivecalculations in a single place, without having to repea

Why is it that the TODAY and NOW date functions do not have any arguments?

Some functions need additional information to work, like SUM needing values to add. Some functions don't need anything to work. TODAY and NOW can both get what they need from

When you pass an array as an argument to a function what actually gets passed?

In C, all array names will implicitly convert to a memory address  at the slightest provocation. Thus when we pass an array name to a  function, the value we actually pass i