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 is the maximum combined length of command line arguments including the space between adjacent arguments?

So for as i know, it depends on the first argument which represents the number of arguments. If argc is 2 bytes in length, 65535 strings can be passed. If argc is 4 bytes in l

Program to copy one file into another using command line arguments?

include #include #include #include #include #include #include int main(int argc,char * argv[]) { int fp,ft,buffsize=10; char *buff=(char *)malloc(sizeof(ch

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
In Atheism

What are the arguments that God does not exist?

Please do not include comments that do not answer this question.  Opinions from contributors:    Opinion   Humans have always been very curious about their origins

Can there be at least some solution to determine the number of arguments passed to variable argument list function?

Yes. Use a control parameter before the variable argument list that  determines how many arguments will follow. E.g., the printf()  function uses a string parameter as the c