Question: C Program Sorting Addresses --------------------------------------- Description: Input consists of names and addresses in the below format: There should be NO USER PROMPTS , all input
C Program Sorting Addresses
---------------------------------------
Description: Input consists of names and addresses in the below format: There should be NO USER PROMPTS, all input will come from a file using I/O redirection.
FirstName LastName
2222 Address Lane
My City, State
90210
Chegg Senior
5895 This Street
Programming, NY
92310-4532
-------------------------------------
The program is supposed to take this, store it in a struct, then after all input is received it should output all addresses in zip code order from lowest to heighest using PURE POINTER NOTATION, All memory must be DYNAMICALLY ALLOCATED as data is input. there is no Minimum or Maximum to how many addresses that can be entered. Addresses should be output in the same style as they are input with a space between each address.
Note that a zip code entered in this format (90210-1234) should also be accepted.
---------------------------------------
Rules/Notes:
-Must use Dynamic Memory Allocation
-Must use Pure Pointer Notation
-Do NOT Delete duplicate addresses
-No Global Variables
-Sort from lowest Zip to Highest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
