title: How to return a 3D array from user defined function?
body: <p>I want to return a 3-dimensional array from a user-defined function into my <code>main</code> function.</p>
  <p>Let's consider a simple example for any particular values of <code>a</code>, <code>b</code> and <code>c</code> arrays;</p>
  <pre><code>int*** my_function(int a[], int b[], int c[])
  {
     for (int i = 0; i &lt; 2; i++)
     {
        for (int j; j &lt; 2; j++)
        {
           for (int k; k &lt; 2; k++)
           {
              array[i][j][k] = a[i] * b[j] * c[k];
           }
        }
     }
     return array
  }
  </code></pre>