I have searched in a few places already for a solution to this problem and have come up short. Essentially what I am looking to do is to assign a const 1D array from one of the rows of a const 2d array and specifically to do it in a header file.
Say I have
const int Arr1[2][3] = {{1,2,3},{4,5,6}};
and I want to initialize an array (within a header file) from this array. I know normally I could do:
const int *Arr2 = Arr1[1];
or
const int *Arr2 = Arr1[0];
but doing so in a header file gives multiple definition errors. So my question is if there is a nice way to do this.