available 0 rptr availtables return i return 1 3 The prototype for the function

Available 0 rptr availtables return i return 1 3 the

This preview shows page 8 out of 8 pages.

3.The prototype for the function get_occupied_tables is provided below. The function initializes the answerout parameter with copies of tables that are occupied (not available). The integer associated with the foundout parameter must be initialized with the number of occupied tables found (including 0 if none were found). The function will fail and return 0 if any of the parameters is NULL; otherwise the function will return 1. If any of the parameters is invalid, you do not need to set foundnor answerint get_occupied_tables(Restaurant *r_ptr, Table answer[], int *found) .
Image of page 8

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture