I am a noobie in C++ and its pointers, and I don't understand why in this code it is showing different addresses. I am also having trouble to understand if pointers can hold values or only addresses.
int* y;
std::cout << "y address is: " << y << std::endl;
std::cout << "y address is: " << &y << std::endl;
Output:
y address is: 0x41c33e
y address is: 0x28fefc