Hello,
I have an int array and want to print it by using a function called PrintTable.
PrintTable has to print the numbers of the array, 12 at every row.
I get this error message
Code:
ask.c: In function `PrintTable':
ask.c:64: error: invalid lvalue in assignment
And here you have my function:
Code:
void PrintTable(int T[], int Last)
{
int i;
for(i=0; i<=Last; ++i)
{       if(fmod(i,12)=0)  //this is line 64
                printf("%4d\n",T[i]);
        else
                printf("%4d",T[i]);
}
}
Please help me, what does this error mean? Where is the mistake?