title: Function parameter: Pointer to array of objects
body: <p>In my main function I create an array of objects of a certain class "Menu"</p>
  
  <p>And when I call a function I want to provide a pointer to that array.</p>
  
  <pre><code>Menu menu[2];
  // Create menu [0], [1]
  Function(POINTER_TO_ARRAY);
  </code></pre>
  
  <p>Question: What is the correct way to write the Function parameters?</p>
  
  <p>I try:</p>
  
  <pre><code>Function(&amp;menu);
  </code></pre>
  
  <p>and in Header file:</p>
  
  <pre><code>void Function(Menu *menu[]); // not working
  error: Cannot convert parameter 1 from Menu(*)[2] to Menu *[]
  
  void Function(Menu * menu); // not working
  error: Cannot convert parameter 1 from Menu(*)[2] to Menu *[]
  </code></pre>
  
  <p>and I can't come up with any other way to do this and I can't find a solution to this particular problem.</p>
  
  <p>Simply, I want to be able to access the Menu array within the function through a pointer. What are the difference in normal pointer to a pointer to an array?</p>