#include
using namespace std;
int main()
{
int a[10];
cout<<&a<<endl;
cout<<a;
}
this code gives the same address how ??
if array is a[10] and we know that a stores the first element’s address so it means a is also a pointer right and the pointer is also stored in STATIC memory same as our static array so how do they have same addresses .
one more thing is pointer created or not when initialising a[10] . Check the image for my visualisation and basically i want to know the address of pointer a that is x or &a. i hope u get my question this time.