title: Passing Arrays of any size to C++ functions
body: <p>I know that you can pass arrays in other ways such as:</p>
  
  <blockquote>
    <p>returnType functionName (dataType array[][10])</p>
  </blockquote>
  
  <p>But I am interested in case where you don't know the size of the array in advance. I want to be able to pass the number of rows and number of columns as parameters.</p>
  
  <p>How do i pass an array of any size to a C++ function? I want to do something along the lines of : </p>
  
  <pre><code>void functionName(dataType array[][], int num_rows, int num_cols){
     // ***Some operation such as printing the array's contents***
  }
  </code></pre>