Following code snippet:
int ia[3][4] = { 0,1,2,3,4,5,6,7,8,9,10,11 };
int(&row)[4] = ia[1];
I can't get my head around why this particular code is valid. For my current understanding I don't have a rational explanation. Can someone help me out with that? My problem is with &row
which doesn't seem to reference anywhere. My only explanation is that this has to be valid because its an initialisation.
I've got the following explanation from my book:
.... we define row as a reference to an array of four ints
Which array? The one we are about to initialise?