title: Global reach of char *argv[ ] and int argc C++
body: <p>I've got the main function: <strong>main(int argc, char *argv[])</strong>. I want to use these variables: <strong>argc,argv</strong> in   other function:</p>
  
  <pre><code>int function()
  
  int main(int argc, char *argv[])
  {
   ...
   function();
   ...
   return 0;
  }
  
  int function()
   {
   int b=argc;
   return 0;
   }
  </code></pre>
  
  <p>but the compilator give error, that <strong>argv</strong> is undeclared. How can I use these variables in other functions?</p>