title: C passing variable by reference
body: <p>I have the following code:</p>
  
  <pre><code>main()
  {
   uint8_t readCount;
   readCount=0;
   countinfunc(&amp;readCount);
  }
  
  countinfunc(uint8_t *readCount)
  {
   uint8_t i;
   i = readCount;
   ....
  }
  </code></pre>
  
  <p>Problem is that when it enters in the function the variable <code>i</code> has a different value then 0 after the assignment.</p>