Consider the following C-style struct to represent a date: (Use array of structures)
Write a program that asks the user for how many dates are needed and then allocates space (all at one time) for that many structs.
Then, in a loop, ask the user for the values to put in each structure. Do this by initializing a struct pointer to the base address of the allocated space. Then add the size of a struct to it for each execution of the loop.
Finally, print out the contents of all the structures.
You can use the same subroutine to print. Modify the load data subroutine to prompt for the date fields instead.