title: c++ Array Error: Expected an expression
body: <p>I've just now come across an error using arrays that seems odd, I've searched the web but it would appear this is typically something people run into when they are dealing with multidimensional arrays. The error occurs when I attempt to call a function that uses an array as a parameter. Here is the code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;iomanip&gt;
  #include "header.h"
  #include &lt;fstream&gt;
  
  using namespace std;
  
  int main(){
  
     string make, model, licensePlate, address, name, phoneNumber;
     int year, messageCode;
     char choice;
  
     bool ready[10];
     string phoneNumber[10], name[10], address[10], licensePlate[10], make[10], model[10];
     int year[10];
  
     initializeArray(year[]);
  </code></pre>
  
  <p>The error occurs within the brackets of year[], expected an expression. Thanks in advance!</p>