270 views
0 votes
0 votes

this is a c function  which adds the newly created node  at the end(tail) of link  list . this node is pointed by q and next of this node is already null.

struct *node *add(struct node*head ,struct node *q)

 

the number of ways to fill the boxes so function works correctly….…..??

my dooubt:

while how second is true becz when on;ly one node in list then second will fail…..answer is given as 1 and 2 are true….

Please log in or register to answer this question.

No related questions found