title: Difficulty in using value set argument. Code below
body: <p>I have the following code snippet: Basically I am trying to get the value from extract function using value set method. Following is the snippet below</p>
  
  <pre><code>int extract(uint8_t *msg) 
  {
      msg = get_value();
      print(msg); // I am able to print the value here.
  }
  
  
  int main()
  {
       uint8_t msg;
       extract(&amp;msg);
       print(msg)   // Here it is printing incorrect value..
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>