Question: In C Language For this assignment you will perform several tasks 1. Ask the user to enter in the number of nodes for the linked
In C Language
For this assignment you will perform several tasks
1. Ask the user to enter in the number of nodes for the linked list 2. Generate a list with the # of nodes specified by the user Each node will contain a random number with the range 0-9999 3. Print out the generated list (10 per line)
Required Functions:
NOTE: These functions are NOT exactly the same as in the lecture node *makeNode(int val); - create a node for your list, should return a pointer to that node (struct node *) node *insertFront(node *head, node *new); - add a node to the front of the list, return new front of list void printList(node *head); - print out the linked list (10 per line)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
