Hi, I've tried to output pointer in decimal but can't do it
int a = 10;
int* p = &a;
cout.unsetf(ios_base::hex);
cout.unsetf(ios_base::oct);
cout.unsetf(ios_base::dec);
cout << showbase << dec << p << endl;
it still shows this output in hexadecimal format. Any reason why this doesn't work. Thanks in advance.