title: How to modify a local variable of one function from other function?
body: <pre><code>int main ()
  {
      int a, b;
  
      call(&amp;b);
  
      printf("%d, %d",a , b);    
  }
  
  void call(int *ptr)
  {
  
  
  }
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>50, 100
  </code></pre>
  
  <p>How to write the call function so as to modify both the variables to get the desired output??</p>