Merging two sorted LL

code : https://ide.codingblocks.com/s/214164

i am not getting the final output

@chaman9 hey apka merging ka code bilkul sahi hai but akhri me print krte hue apne head pointer print kia hai which will give adrees of head node,apko puri ll traverse krni hai aur uska data print krna hai like this:
void print(nodehead)
{
node
temp=head;
while(temp!=NULL)
{
cout<data<<"->";
temp=temp->next;
}
}
Call this print function with final head as argument ,it will give output,hope you get it.

Thanks a lot… samj gya

@chaman9 no problem ,welcm