I declared this function :
int dice(int roll[8]) {
blah blah
return (score);
And called it in int main:
newScore = score(roll[8]);
I am getting an invalid conversion from int to int error. What am I doing wrong? The error is on the line where I call it.
dicehas no closing brackets 2) What'sscore? 3) The "blah blah" section is important because without it, we can't tell you what's wrong with your code.roll[8]is a single int, not the array.int dice(int *roll, int n)