I wanted to go through some of the concepts on pointers and then you the reader will have to just start writing code.
First thing to understand is the difference between direct and indirect referencing and that pointers are indirect referencing.
Given the scenario, say we have a classroom with 50 desks, 10 desks across and 5 rows back, we then assign each desk with a number up to 50. Now all the students come into class and sit down in their desk.
Let's say there is a student named Jim and he happens to have the dry erase pen needed to start class. When I call jim out loud he then stands up and hands me the pen. This would be a direct reference. I am directly calling jim not caring where he sits in the class room and he gives me the pen.
Now Jim happens to be sitting at a desk with the number 36 on it. If it were the first day of class and I did not know Jim's name at all, if I were to say "Desk number 36 I need the pen." The person comes up and gives me the pen. I did not have to know who jim was to get what I needed to start class. This is indirect referencing and that is the concept of pointers with memory.
You can think of the memory as all the desks in the classroom and the students that sit in each desk is like what is being stored in memory. We always know the address of memory just like we know the number assigned to each desk in the classroom.