Amani A.

asked • 02/04/22

I need help in this question in C language

A person sold his car so it will be removed (person name, car model, and price) from the system. Define a function struct PersonCar * deletePersonCar(char * persName, char * carModel) that deletes the car of model carModel for the person persName from the array npc after resizing it. The function will return a pointer to the new array. Remember to decrease the number of registers cars c by 1.

Example of calling this function: npc = deletePersonCar(“May”, “BMW”);

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.