I'm trying to pass an array to a function but I'm getting this weird error
const int size = 2;
void foo(short (&a)[size]){
cout << a;
}
void testSequence(short a[size]){
foo(a);
}
error: invalid initialization of reference of type ‘short int (&)[4]’ from expression of type ‘short int*’