How to return the pointer to the tail

will the return type of functions be node* if we want to return head and tail pointers from respective functions?

hi @Senjuti256 thats correct, the return type will be node*