I don't mean to be rude, but - this is simple textbook stuff. This is one of the very first things any textbook or tutorial will tell you about pointers. If you don't know this, then I suspect you havern't really learned the very basics of pointers.
If so, then you're probably better off going to your textbook or a tutorial and getting a basic understanding of the subject, rather than trying to get your code working by asking piecemeal questions here.
If I've misunderstood your situation, then apologies.