title: Double pointer as an array to a function
body: <p>This is a sample code of my program.</p>
  
  <p>I have a function named <code>function</code> which is used to return an integer value and an integer array. I have to pass them as pointers (The signature of <code>function</code> cannot be changed). So I wrote the below code. Here I have to assign the values to the double pointer passed to the function.</p>
  
  <pre><code>void function(unsigned int* count, unsigned int ** array)
  {
    for(unsigned int i = 0; i&lt;4;i++)
    {
      //array[i] = (unsigned int*)i*10;
    }
    *count = 4;
  }
  
  int main()
  {
  
    unsigned int count;
    unsigned int array2[4];
    function(&amp;count, (unsigned int**)&amp;array2);
  
    return 0;
  }
  </code></pre>
  
  <p>But the above code is not working.</p>