title: When does error "expression must have pointer type" occur?
body: <p>I have a source code that gives the error "expression must have pointer type" </p>
  
  <p>It is legacy code and I do not have the whole code. The code on which the error comes is:</p>
  
  <pre><code>(void *)&amp;arr[0]
  </code></pre>
  
  <p>I do not know the type of <code>arr</code>. </p>
  
  <ol>
  <li>On what conditions can this error occur?</li>
  <li>What type of <code>arr</code> could be causing this error?</li>
  </ol>
  
  <p>I know the data is less to determine the issue but I need to emulate it in smaller code. Any help will be highly appreciated.</p>