there are two ways to declare a one-dimentional array
(1)??? calculateEarned(worker array[]);
and
(2)??? calculateEarned(worker * array);
but there is only one way to declare the return value, using a pointer to the beginning of the array.
worker* calculateEarned(worker []);
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,957 posts
since Aug 2005