Discussions
harsha

· started a discussion

· 1 Months ago

how??????/////////////////////////////////////////////////////

Question:
In a circular linked list, insertion of a record involves modification of?
Options:
A) One pointer
B) Two pointer
C) Multiple pointer
D) No pointer
E) None of these
Solution:
Two pointer

Knowledge Expert

· commented

· 1 Months ago

Hi Harsha,
The correct Answer is 2 Pointer.

Suppose we want to insert node A to which we have pointer p , after pointer q then we will
Have following pointer operations
1.p->next=q->next;
2.q->next = p;
So we have to do two pointer modifications.

All Rights Reserved Top Rankers