Question
C Programming Not C++ Dynamic Array Contiguous Memory Assignment Outcome: Student will demonstrate the ability to create an array on the stack Student will demonstrate
C Programming 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.
GENERAL-RUBRIC
Comments within the code
Array on the stack
Array on the heap
Creation of a struct
Submission Requirements:
You must follow the rules from the first assignment other than there is not need to submit or create a design tool.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started