title: Does realloc change pointer address?
body: <p>Take this code for example: </p>
  
  <pre><code>Struct* allocSomething(void) {
      int n; 
      Struct *something = malloc(n*sizeof(Struct));
      return something;
  }
  
  Struct* reallocSomething(Struct **s) {
      int n;
      Struct *something = realloc(*s, (n*sizeof(int)) - 1 * sizeof(Struct));
      return something;
  }
  
  int main() {
      Struct *point = allocSomething();
      //code does something...
      point = reallocSomething();
      free(point);
  }
  </code></pre>
  
  <p>My question is, after calling <code>reallocSomething</code>, <code>point</code> has still the same address returned by <code>allocSomething</code>? For example, if <code>point</code> have address <code>0x01</code>, when this pointer get reallocated by <code>reallocSomething</code>, is that address still <code>0x01</code>?</p>