I would like to share a general technique that I used to find out how pointers work when I start. If you apply it to your problem, you will see the answer as simple as a day.
Get a large sheet of graphic paper and lay it along the table in front of you. This is your computer memory. Each box is one byte. Select the line and place the number "100" under the box on the left. This is the "lowest address" memory. (I chose 100 as an arbitrary number that is not 0, you can choose another.) Place the fields in ascending order from left to right.
+ --- + --- + --- + --- + --- + -
| | | | | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
Now, for now, pretend that int is one byte. You are an eight-bit computer. Write int a in one of the fields. The number under the field is its address. Now select another block containing int *b = &a . int *b also a variable stored somewhere in memory, and it is a pointer containing &a , which is pronounced "address".
int a = 5; int *b = &a;
ab
+ --- + --- + --- + --- + --- + -
| 5 | | 100 | | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
Now you can use this model to visually work with any other combinations of values ββand pointers that you see. This is a simplification (because, as the words of the pedants say, the pointer is not necessarily an address, and the memory is not necessarily sequential, and there is a stack, heap and registers, etc.), but this is a pretty good analogy for 99% of computers and microcontrollers.
So in your case
int x = 35; int y = 46;
xy
+ --- + --- + --- + --- + --- + -
| 35 | 46 | | | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
int *p = &x; int *q = &y;
xypq
+ --- + --- + --- + --- + --- + -
| 35 | 46 | 100 | 101 | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
p = q;
xypq
+ --- + --- + --- + --- + --- + -
| 35 | 46 | 101 | 101 | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
*p = 90;
xypq
+ --- + --- + --- + --- + --- + -
| 35 | 90 | 101 | 101 | | ...
+ --- + --- + --- + --- + --- + -
100 101 102 103 104 ...
Now what is *p ? What is *q ?