1. I can't really explain this but I am working on linked lists but I am asked to set the traversing pointer back to the original/head pointer. How do I do this?
I tried...
CurrPtr = headPtr;
but it doesn't work...
2. When I try to access a c-string variable in a structure pointer, I could only get it its first character when viewing it?
For instance, the name is John. When I try outputting the name at the given position of the list, I can only see 'J'. How would I get around this?
I really suck at linked lists and pointers...I probably suck at lists because I suck at pointers.
Maybe you should show the line, in which you do the output?
And also helpful would be, to know about the data types, whether it's string or it's char *, and whether you mix this types, what you shouldn't do.