Write function called merge lists that takes two


Problem

Write a function called merge Lists that takes two call-by-reference arguments that are pointer variables that point to the heads of linked lists of values of type int. The two linked lists are assumed to be sorted so that the number at the head is the smallest number, the number in the next node is the next smallest, and so forth. The function returns a pointer to the head of a new linked list that contains all the nodes in the original two lists. The nodes in this longer list are also sorted from smallest to largest values. Note that your function will neither create nor destroy any nodes. When the function call ends, the two pointer variable arguments should have the value NULL.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write function called merge lists that takes two
Reference No:- TGS02745634

Expected delivery within 24 Hours