title: Pointer to Array of 10 NodeLists? OR Array that contains Pointers to 10 NodeLists Objects
body: <pre><code>struct NodeList * headNodePtrList;
  
  headNodePtrList= new NodeList[10]; 
  </code></pre>
  
  <p>Is the above Pointer to Array of 10 NodeLists objects? OR</p>
  
  <p>Array that contains 10 Pointers to 10 NodeLists Objects</p>
  
  <pre><code>headNodePtrList[list].headOfList=newNode;
  </code></pre>
  
  <p>When I try to do the above it works, however if I do    </p>
  
  <pre><code>headNodePtrList[list] -&gt; headOfList=newNode; 
  </code></pre>
  
  <p>base operand of ‘->’ has non-pointer type ‘NodeList’. I understand what it is saying but I always thought that the top 2 lines created an array of 10 NodeList Pointers </p>