Solved

# POINTERS AND ARROW

Posted on 2003-10-31

please help me understand how pointers work and how this works "->" . i really dont understand these concepts and i need step by step explanation of what they mean. here are examples:

Struct Node { int data; Node *next;}; Node *p1, *p2, *p3;

p1->data = 112;//please explain this step

p2->data = 55;

*p1 = *p2; //please explain this step

cout << p1->data << " " << p2->data<<endl;

the result of the cout is 55 55 but please help me step step explanation on how it works.