Code and execute a C program to input names and addresses that are in alphabetical order and output the names and addresses to a new file in zip code order.
Allocate storage dynamically for each structure. Use I/O redirection for the input and output files. This program must be done with an array of pointers to structures. Do not use an array of structures. Encourage to use string handling functions but no global variables.
Input: Create a data file of names and addresses in alphabetical order (by names) as follows:
first line: last name, first name
second line: street address
third line: city and state
fourth line: zip
Output: The program is to create a new file of names and addresses in zip code order with the above format.
if duplicate records occur in the input file, only include one copy in the output file.