[Solved] Following C Structure Used Define Node Linked List Typedef Struct Node Int Data Struct Lin Q37264522
The following C structure is used to define each node in alinked list:
typedef struct node{
int data;
struct *link;}
Node;
Write a C function, called buildJoinedList, that takes twolinked lists called firstList and secondList as its parameters, andreturns a new list that joins the two lists, with secondList at thefront. Both firstList and secondList are pointers to the first nodeof a linked list. The function should return a pointer to a newlist that is dynamically allocated.
Note that the existing linked lists pointed to by firstList andsecondList must not be modified in any way.
An example of how the function should work is as follows: if f i rs t L i s t points to a linked list containing nodes storing thenumbers 1, 2, 3, 4, 5 and secondList containing the numbers 6, 7,8, 9, 10, then the newly created list returned by thebuiidJoinedList function should contain nodes storing the numbers6, 7, 8, 9, 10, 1, 2, 3, 4, 5
Expert Answer
Answer to The following C structure is used to define each node in a linked list: typedef struct node{ int data; struct *link;} No… . . .
OR

