Function data type mismatch
imaddmattgaming (0)

If I delcare a prototype for a function as so:
void func(int&, int, int[], int*);

Then I declare and int but populate it as an array:
int x3 = {0};
What happens to the x3 variable that is passed into the second parameter?

You are viewing a single comment. View All
Vandesm14 (921)

@imaddmattgaming The x3 variable is an array, so when it is passed into the function (when the parameter is supposed to be an integer), it returns an error.

Please mark this as answered if I helped your problem 👍