struct Node
{
	int data;
	Node* Next;
};
void mergelists(Node*&A, Node*&B , Node*&C)
{
	
	Node *s=A;
	while(s!=NULL)
	{
	s=s->Next;

	}

	
	C=A;
	A=NULL;
	B=NULL;

}(i have a missing but i don't know where)

We don't know where either, but there certainly is one missing. It all depends on what is part of your function and what isn't.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.