Q. select the set of operations to insert a node pointed by q at the beginning of the linked list (Solved)
1. q->next=head; head=q;
2. head=q;q ->next=head;
3. both (a)and(b)
4. none of these
- a. q->next=head; head=q;
1. q->next=head; head=q;
2. head=q;q ->next=head;
3. both (a)and(b)
4. none of these