I am having problems with pointers and i am getting two errors saying "invalid argument type of 'unary *'"
float getProfit(float* bushels, float price)
{
int i = 0;
for(i = 0; i < 20; i++);
{
*bushels[i] = *(bushels[i]*price);
}
return 0;
}
any ideas on a solution? i have never even seen this error before.