In reference to the code below: why does in one case we get the full string and in the other the address? Can someone please explain this?
char mary[] = "Mary";
char* aPtr = &mary[0];
int b = 5;
int* bPtr = &b;
cout << "aPtr value is " << aPtr << endl; // Prints "Mary"
cout << "bPtr value is " << bPtr << endl; // Prints address of integer b