That's the decimal representation of the address ptr is located in. It's random everytime you assign a variable (not just a pointer). Try doing this:
1 2 3 4 5 6 7
#include <cstdio>
int main()
{
int aVar;
printf("%d", &aVar);
}
This will print something similar to what you have there.
Because the address is random, you can't make a function that access a specific location in memory unless it's during runtime. The above is an example of accessing the adress of a variable at runtime.
This is one of the few keys of pointers. Hope ya learned something!