title: How to pass a pointer to a function
body: <p>I am trying to pass an array pointer to a method of a class, so the method can operate on the array.</p>
  
  <p>However when I am passing it, the address seems to change.</p>
  
  <p>The pointers are member variables.</p>
  
  <p>Basically I am doing this:</p>
  
  <pre><code>unsigned char array[1000];
  unsigned char * pointer = array;
  printf("p%", &amp;pointer);
  
  setup(pointer);
  
  void setup(unsigned char* pointer){
    unsigned char * p = pointer;
    printf("p%", &amp;p);
  }
  </code></pre>