does anyone know whats wrong with my function?
void quarter(detailstype info[])
{
int i,j;
for(i=1; i<4; i++)
{
printf("for month: %d", info[i].month);
for(j=1; j<emp; j++)
{
info[i].qt1=info[j].sal_amount+info[i].qt1;
}
printf("%f", info[i].qt1);
}
}
it is giving me this error: error C2111: pointer addition requires integral operand