title: How to use values of local variable in another function in C
body: <p>Suppose there are two function i.e., <code>function1()</code> and <code>function2()</code></p>
  
  <pre><code>int function1()
  {
    int F;
    printf("enter any value");
    scanf("%d",&amp;F); 
    printf("Value is %d",F);
  }
  </code></pre>
  
  <p>In <code>function1()</code> variable <code>F</code> is used which is local variable. How can I use the value of this local variable <code>F</code> in another function <code>function2()</code>?</p>