Please wait...
THANKU FOR BEING A PART OF OUR JOURNEY TO BRING "REVOLUTION IN EDUCATION"
We Genuinely APPRECIATE your PATIENCE

22
M: +1.00/-0.33

Consider the C code fragment given below.

typedef struct node
{
int data;
node* next ;
} node;

void join(node* m, node* n)
{
node* p = n;
while (p->next != NULL)
{
p = p->next;
}
p–>next = m;
}


Assuming that m and n point to valid NULL- terminated linked lists, invocation of join will

[GATE CS 2017 Set 1]
A
B
C
D