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 (1665)

@imaddmattgaming Yes, it should be an error, unless they want you to pass the array to the correct array parameter. Otherwise, you should be fine!