Question: I need # 6 only P0.5 Write a program consisting of main and display_array functions. The main function declares an integer array with 10 elements
I need # 6 only
P0.5 Write a program consisting of main and display_array functions. The main function declares an integer array with 10 elements and at the same time, initializes them with up to 10 arbitrary values. The main function then calls display_array function to display the contents of the array.
P0.6 Same as P0.5 except the main function calls an additional fill_array function that prompts the user to enter up to 10 integers (i.e., the array may be partially filled with less than 10 values) to load the array. Note that the size of a statically allocated array must be specified before the source code is compiled, i.e., array size must be specified by the programmer at the time the C++ source code is written. This is in contrast with dynamic arrays whose sizes are specified by user at runtime, i.e., the time when the program is running or in execution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
