when you are using "->",it means you want to get the data in memory by the member name next to
"->" .And according to what you used above,the data structure might be defined like
struct tagList
{
int data;
struct tagList *next;
};
and the pointers should be
struct tagList *pointer1,*pointer2,*pointer3,*pointer4;
if pointer2 = &tmpList1;
then
pointer1 = pointer2->next;
it means pointer2 = tmp1.next;
if pointer4 = &tmpList2;
then
pointer4->data = pointer2->data;
it means tmpList2.data = tmpList1.data;
because pointer2->data is *(pointer2).data,and *(pointer2) is tmpList1;
hope it will helpful.