title: C / C++ Error: Pointer variable undefined inside function
body: <p>From my Java experience it was not hard to get a grip.</p>
  <p>A pretty simple function:</p>
  <pre><code>void update(float * p,float value)
  {
      *p = value;
  }
  </code></pre>
  <p>The compiler is complaining that <code>identifier p is undefined</code>.</p>
  <p>I thought <code>*p</code> would dereference the pointer and store value in it.</p>