Here is my function:
Code:
void Display_Info(clock_num, wage_rate, clock_hours, overtime_hours, gross_pay)
{
int count; /* Variable used for loop counter */
/* Create table to display employee information */
printf("\n------------------------------------------------\n");
printf("Clock# Wage Hours OT Gross\n");
printf("------------------------------------------------\n\n");
/* print employee information from arrays into table */
for (count = 0; count < SIZE; count++)
printf("%06li %5.2f %5.1f %5.1f %7.2f\n", clock_num[count] , wage_rate[count] , clock_hours[count] , overtime_hours[count], gross_pay[count]);
}
and here is my call within main
Code:
Display_Info(clock_num, wage_rate, clock_hours, overtime_hours, gross_pay);
I am getting subscripted value is neither an array or pointer on line 12. I am not sure what to do and as per directions, I am not to use pointers. How can I fix this?