Q. Select the set of instructions to insert a node pointed by q after a node pointed by p (Solved)
1. q->next=p->next; p->next=q;
2. p->next=q; q->next=p->next
3. both (a)and(b)
4. none of these
- a. q->next=p->next; p->next=q;
1. q->next=p->next; p->next=q;
2. p->next=q; q->next=p->next
3. both (a)and(b)
4. none of these