title: Return an array in c++
body: <p>Suppose I have an array</p>
  
  <pre><code>int arr[] = {...};
  arr = function(arr);
  </code></pre>
  
  <p>I have the function as </p>
  
  <pre><code> int&amp; function(int arr[])
   {
  //rest of the code
          return arr;
   }
  </code></pre>
  
  <p>What mistake am I making over here??</p>