int multiplicationMethod(int k, int n)
{
if(n > SIZE || n < SIZE)
{
printf("IndexOutOfBounds Error. Please Try different slot number.");
}
else
{
int N = rand();
float A = N/RAND_MAX;
int hashedValue = n * ((int)((k * A%1)));
HashTable[hashedValue] = k;
return hashedValue;
}
}
int hashedValue = n * ((int)((k * A%1)));
is being tagged with a pointer error expression must have an integral type
I don't understand this though because the *
is used with the post NOT prefix operation. Please help. Thanks!