|
|
| arr is an array of 3 pointers |
arr is an array of 3 arrays, each of which is an array of 5 ints.operator<< for arrays, but there is operator<< for pointers, so when you pass arr[i] (array of 5 ints) to cout <<, the compiler constructs a temporary pointer to its first element, and that is what's printed.
There is no operator << for arrays |
arr[i]?| So to be precise arr is an array of 3 const int pointer |
| there is a pointer constructed when you pass arr[i]? |
|
|