Comparing address of array in C++11

Viewed 144

I just coded

 std::array<std::array<double,3>,27 > dshape;
 &dshape[0][0] points to the address ****780
 &dshape[0][1]  points to the address ****788
 &dshape[0][2]  points to the address ****790 (I was expecting 796)

Why is that?

2 Answers
Related