subject

Copy the file readPeople. c. The main function should be in fine shape. You need to finish the function readPeople, and supply the freePeople function. readPeople Given a file handle and an array of null pointers: o Read the information (last name, first name, age ) for a single person Store that information in a person instance allocated from the heap. o Append that instance to the array argument o Attempt to read another person Here is a sample input file: Smith Granny 68 Tape Scott 32 Wire Barbara 45 You may assume: • Entries are complete. If there's a last name, then there's a first name and an age • Data is correct. Age will always convert to an integer. Q2 Place the readPeople function in your labsheet, with formatting. Consider Vim's :r (read) command, or use Bash redirect/append. freePeople This function simply returns the heap instances pointed to by the array to the heap. Do not assume that the array is dense. Check every position for a non-NULL pointer. Q3 Place the freePeople function in your labsheet, with formatting. Consider Vim's : r (read) command, or use Bash redirect/append.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
You know the right answer?
Copy the file readPeople. c. The main function should be in fine shape. You need to finish the funct...
Questions
question
Social Studies, 14.07.2020 04:01
question
Mathematics, 14.07.2020 04:01
question
Mathematics, 14.07.2020 04:01
Questions on the website: 13722360