Question: SENG 3337 Software Development Spring 2017 Programming Test Linked List Create a new project Write statements to: Define (above the main function) a structure (name
SENG 3337 Software Development Spring 2017 Programming Test Linked List Create a new project Write statements to: Define (above the main function) a structure (name Node) with one integer data item and a pointer to this structure. This structure will be used as a node in a linked list. Create a list with only one node: data -3, pointer value NULL Write a function (name head_insert) that will insert a node in this link list. Use this function to add two additional nodes in the list. Data values are 6 and 9, respectively. Print the contents of all the node data. You may need to define and use an additional pointer current' to point to various nodes The following code segment may be helpful: struct Node int data; Node "link; typedef Node NodePtr //Function to Add a Node at the Head of a Linked List //Function Declaration void head insert(NodePtr&head, int the number): //Main function /Function Definition void head_insert(NodePtr& head, int the number) NodePtr temp ptr
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
