If pointers are just integers that hold an address (4 bytes – 32 bits), how do they store the extra addresses in 64-bit memory?

  64-bit, c++, pointers

When using the sizeof() function in c++ programs, the pointers I’ve looked at seem to all return a size of 4 bytes. I’ve seen online that pointers are just integer memory addresses. How does this make sense in 64 bit architectures that would then potentially have memory addresses that cannot be accessed in 4 bytes?

Source: Windows Questions C++