Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, mitchellk872
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
image
Computers and Technology, 22.06.2019 22:40, Bgreene2377
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, eila3601
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
image
Computers and Technology, 23.06.2019 02:30, paolaviviana
Experimental data that is expressed using numbers is said to be
Answers: 1
Do you know the correct answer?
This week we will create a Linked-List (data structure) that will consist of 4 source code files. Yo...

Questions in other subjects:

Konu
Mathematics, 22.02.2021 04:20
Konu
Chemistry, 22.02.2021 04:20