subject

This week we will create a Linked-List (data structure) that will consist of 4 source code files. You will be given three files that are already written: main. c, createList. c and releaseMemory. c (plus a header file prog9.h), the fourth file (called p9.c-which you need to write). To copy these files to your account, perform the following commands: Login to your ctec. clark. edu account (i. e. the Linux server). At the prompt, type rightarrow mkdir prog9 At the prompt, type rightarrow cd prog9 At the prompt, type rightarrow cp/home/faculty/skoss/p9 files/*. At the prompt, type rightarrow ls -l You should now see the following 5 files listed: 1. createList. c 2. main. c 3. p9.c 4. prog9.h 5. releaseMemory. c You need to add code to the file named p9.c If you open p9.c with vi, you'll see a function definition already started as follows: void print_list (PERSON *person_ptr) { } As you can see from the function definition, you are passed a pointer (i. e. person_ptr) to a PERSON object. The pointer will be pointing at the beginning of a linked-List of PERSON objects. You need to traverse the linked-list and print the information (i. e. name & age) to the screen of each object as you traverse the list. Use the following command to build your executable: gcc main. c createFile. c p9.c releaseMemory. c p9

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
The animal classthis class represents a an animal residing at a zoo. it has a weight (in pounds),height (in inches), a name, and a color. the methods in the class include constructors,getters, and a tostring. you will finish the implementation of these methods. referto the code documentation.1.getters: you will need to implement getter methods. these get a value (froma member variable) in the animal class. you will make a getter method toreturn each variable (weight, height, name, color). reference getname if youare having issues.2.tostring: you will need to finish the tostring method. this returns a stringcontaining information about an animal. the output string should be of theformat: ” (name) , a ( color )â’colored animal . ( weight ) pounds , ( height ) inches .\n”the height and weight are formatted to 1 decimal place. recall from lab 1how to format strings neatly using string. see the reference sectionfor more about string.format.
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 1
question
Computers and Technology, 24.06.2019 21:50
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
question
Computers and Technology, 25.06.2019 15:30
What is the function of a computer screen?
Answers: 1
You know the right answer?
This week we will create a Linked-List (data structure) that will consist of 4 source code files. Yo...
Questions
question
Mathematics, 25.04.2021 01:00
Questions on the website: 13722361