title: Pointer is NULL after returning from a function
body: <p>I send int*** to a function and the function does it job, but when I try to use the pointer in outside after the function, it is NULL. Here is the function:</p>
  
  <pre><code>void pointerSort2(int* arr, unsigned int size, char ascend_flag, int*** pointers)
  {
      int  i, j, *temp;
      int** sort=new int*[size];
  
      for (i=0;i&lt;size;i++)
          sort[i]=&amp;arr[i];                                                     
  
      if (ascend_flag==true)
      {
          for (i=0;i&lt;size-1;i++)
          { 
              for(j=0; j&lt;size-1-i;j++)
              {
                  if (*sort[j]&gt;*sort[j+1])
                  {
                      temp=sort[j];
                      sort[j]=sort[j+1];
                      sort[j+1]=temp;
                  }
          }
      }
  
      pointers=&amp;sort;
  }
  </code></pre>
  
  <p>When I try to use it after, the pointer is "0x000000 (???)"</p>