Question: Data structure 28 Below you see a linked list of integers with its tail linked to its head, forming a circular structure. head 4 What
Data structure 28

Below you see a linked list of integers with its tail linked to its head, forming a circular structure. head 4 What is the formal name of this data structure? (3%) a) b) To implement this data structure in C, we will first need to define a struct that models the nodes. Assuming the only data of each of the node is an integer, please demonstrate how you will define the struct. Set the alias of this struct to be "Node" via typedef. (5%) Implement a function printList so that it will print out every element once in the data structure, starting with the head. The function prototype is given below. (10%) c) void printList (Node* head); d) Please give an example of possible valid use of this data structure in a real life application. (2%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
