I've bought a beginners book for visual c++ and have come the chapter which involves arrays, strings and pointers. I understand the concept, but when it comes to multidimensional arrays I got a bit lost.
Array and and pointer declaration:
double beans[3][4];
double* pbeans;
I understood this part:
*You can declare and assign a value to the pointer pbeans, as follows:
double* pbeans;
pbeans = &beans[0][0];
But when the author presents that you can assign the address for the first row/dimension by typing this statement he lost me:
pbeans = beans[0];
Why can we skip the "Address-Of" operator here? To me the logical thing would be:
pbeans = &beans[0];