[Solved] C++ references and pointers int∗ p = &a [ 2 ] ;
This code int∗ p = &a[2]; is equivalent to this: int∗ p = a + 2; so even mathematically you can see that p – a is equal to a + 2 – a so I think result should be obvious that it is equal to 2. Note name of array can decay to a … Read more