title: How to return a pointer from a function that calls a function by pointer to a function that returns a pointer?
body: <pre><code>node *insertPlaceOrder(node *head, char *firstName, char *lastName, int day, int month, 
      int year, char *birthPlace) {
    //CODE
  return head;                     
  }
  
  node *insertToList(node (*(*order))(node*, char*, char*, int, int, int, char*), node *head, 
      char *firstName, char *lastName, int day, int month, int year, char *birthPlace) {
    return (*order)(head, firstName, lastName, day, month, year, birthPlace);
  }
  </code></pre>
  
  <p>When I debug this code, the compiler gives me the following error:</p>
  
  <blockquote>
    <p>incompatible types when returning type 'node {aka struct node}' but 'node * {aka struct node *}' was expected.</p>
  </blockquote>
  
  <p>How can I get the <code>insertToList()</code> function to return the pointer to a struct node that the function <code>insertPlaceOrder()</code> returns?</p>