Question: C++ program that prompts the user for 10 integers, reads those values, and stores those values into an array. implement a function called minimum
C++ program that prompts the user for 10 integers, reads those values, and stores those values into an array. implement a function called minimum that has an array of integers as its argument. function should traverse the array and return the minimum number in the array to the calling function. The function minimum should then display the following message: "minimum integer is x", where x is the smallest integer that the user entered. one program should statically define the array. Please note that the size of a statically defined array is specified at compile time. the second solution should statically define a pointer to an array of integers and use new to dynamically allocate the space for the 10 integers at runtime.
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Here are two C programs that fulfill your requirements One uses a statically defined array and the o... View full answer
Get step-by-step solutions from verified subject matter experts
