Question: THIS program is in C not C++ Dynamic Array Contiguous Memory Assignment Outcome: Student will demonstrate the ability to create an array on the stack

THIS program is in C not C++

Dynamic Array Contiguous Memory Assignment

Outcome:

Student will demonstrate the ability to create an array on the

stack

Student will demonstrate the ability to create an array on the

heap allowing user to choose the number of values to store.

Student will demonstrate the ability to store an array of

Struct values on both the stack and the heap.

Program Specifications:

You are to create a struct with at least 3 fields. You are to

populate at least 10 elements in the array with a limit of 1000

elements.

You are then to create an array on the heap to store the same

number of populated elements from the stack array.

The program will copy the values from the stack array into the

dynamic array.

The program will output the contents from each array.

** You can have a menu system if you wish but it is not a

requirement **

Finally, you are to create a BIN file to store the contents of the array on the heap.

YOU CANNOT:

USE GLOBAL VARIABLES, USE THE WORD GOTO, USE THE BREAK COMMAND OUTSIDE A CASE STATEMENT.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!