When you declare
int *ptr1;
you're defining a variable (that has an address) that points to an integer. You can get the address of that variable by taking the address (&) of that variable, that is,
&ptr1
fundamentally, ptr1 will contain the address of a memory location (where an integer may be stored, if it point to a location where space has been allocated for such a thing).
Comparing the values of the ptr1 and ptr2 variables will tell you if they point at the same variable; comparing the dereferenced values of the ptr1 and ptr2 variables will tell you if the values they point at are the same.