Question
Only ask the Q3 [5 pts] Implement the function arrayToLinkedList()?described on page 5. Assume you have a correct implementation of addToEndOfList()?and use it in your
Only ask the Q3 [5 pts] Implement the function arrayToLinkedList()?described on page 5. Assume you have a correct implementation of addToEndOfList()?and use it in your implementation of arrayToLinkedList(). ?As an example the following code should result in the linked-list depicted in Figure 1 on page 6. char name[]= Jill; LinkedList *mylist = arrayToLinkedList(name, 4); In the following questions you may use the standard library function char tolower(char c);? that takes a single character as input and returns the lower-case version of the character.
Part 3: Linked Lists, Recursion, C-strings You are given the files: node.h and linkedlist.h. Below is the content of node.h that contains the declarations for Node and LinkedList. These declarations are similar to those used in the construction of a linked-list in lab06 and lab07, except every node now stores a character instead of an integer. Use these declarations in the questions that follow: //filename: node.h #ifndef NODEH #define NODE H struct Node - char data; Node *next; 1i struct LinkedList ( Node *head; Node *tail; #endif
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started