title: Function is not changing the value of pointer
body: <p>I think the code is self-explanatory:  </p>
  
  <pre><code>MyClass* pointer = NULL;
  changePointer( pointer );
  if (pointer == NULL) 
  {
     // it's entering here :(
  }
  
  
  
      void changePointer( MyClass* p)
      {
          MyClass* temp = NULL;
          for (int i = 0; i &lt; myContainer.size(); ++i) 
          {
              p = &amp;(myContainer[i]);
  
              if (p == NULL) 
              {
                   // it's not entering here :)
              }
          }
      }
  </code></pre>