I was trying to find the memory address of an array elements but the output is turning out to be in Hexadecimal. I would appreciate if u could tell me how to convert it to a Decimal output.
Here is the Code,
#include<iostream>
using namespace std;
int main()
{
int a[4];
cout << "Address of a[0] = " << &a << endl;
cout << "Address of a[1] = " << &a[1] << endl;
cout << "Address of a[2] = " << &a[2] << endl;
cout << "Address of a[3] = " << &a[3] << endl;
cin.get();
return 0;
}