Suppose your program contains the following type definitions and
pointer variable declarations:
struct Node
{
double data;
Node *next;
};
typedef Node* Pointer;
Pointer p1, p2;
Suppose p1 points to a node of this type that is on a linked list. Write code that will make p1 point to the next node on this linked list. (The pointerp2 is for the next exercise and has nothing to do with this exercise.)
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.