title: How to access variables defined and declared in one function in another function?
body: <p>Can anyone tell me how to access variables declared and defined in a function in another function. E.g</p>
  
  <pre><code>void function1()
  {
     string abc;
  }
  
  void function2()
  {
     I want to access abc here.
  }
  </code></pre>
  
  <p>How to do that?
  I know using parameters we can do that but is there any other way ?</p>