title: How to change the local variable without its reference
body: <p><strong>Interview question :</strong> Change the local variable value without using a reference as a function argument or returning a value from the function</p>
  
  <pre><code>void func()
  {
    /*do some code to change the value of x*/
  }
  int main()
  {
     int x = 100;
     printf("%d\n", x);  // it will print 100
     func(); // not return any value and reference of x also not sent
     printf("%d\n", x);  // it need to print 200
  }
  </code></pre>
  
  <p><code>x</code> value need to changed</p>