For example:
int main() {
std::string a = "hello";
std::string *b= &a;
std::cout << b;
}
This will give 0x7ffe1709... a memory address. However when we do:
int main() {
char a = 'A';
char *b= &a;
std::cout << b;
}
A - is printed. Why the memory address isn't printed here instead?