title: error: subscripted value is neither array nor pointer nor vector in C
body: <pre><code>the_project.c:73:22: error: subscripted value is neither array nor pointer nor vector 
  </code></pre>
  
  <p>it gives the error above and the line 73 is the following.</p>
  
  <pre><code>customer_table[my_id][3] = worker_no;
  </code></pre>
  
  <p>I declared the array global as follows</p>
  
  <pre><code>int *customer_table;     //All the info about the customer
  </code></pre>
  
  <p>This line of code is in a function not in main.
  And I allocate memory for this global array in the main.
  What may this cause this problem?</p>