Quote:
Originally Posted by rajadurai I have worked in C but not on pointers, but now I have to work completely in pointer concepts, that is, pointers to pointers, pointers to structures, etc. |
You have my sympathy. Pointers make most peoples heads hurt.
Quote:
Originally Posted by rajadurai Can you anyone please suggest me good material to go through? |
Pointers are simple,
in theory. Any good book on C programming will tell you all you need to know about pointers.
Looking through my bookshelf, I see a good explanation of pointers in
Practical C Programming by Steve Oualline.
Pointers on C is an entire book devoted to C pointers. I don't have that on my bookshelf, so I can't tell you how good it is.
On the web, take a look at:
It is in
practice where pointers become complex. Humans appear to have difficulty keeping track of what is a thing and what is a pointer and where each pointer points to.
My advice is this:
- Use a naming standard for your pointers, such as appending "_ptr" to every pointer.
- Document your variables, including pointers. Comment heavily.