Why do these two C++ statements give two different locations in memory
With the following code, two different addresses are printed out. Can anyone explain why? I’m not the most proficient with pointers but I presumed that they would give the same address. #include <iostream> int main() { float (*arrayName)[2][4][4]; auto address1 = (**arrayName)[1]; // 0x10 auto address2 = (*arrayName)[1][0]; // 0x40 std::cout << "Address1: " <<… Read More Why do these two C++ statements give two different locations in memory