Question: C++ PROGRAMMING LANGUAGE! Follow Direction in the comments #include using namespace std; const int SIZE = 5; void print(int []); int findSmallest(int []); int main()
C++ PROGRAMMING LANGUAGE!
Follow Direction in the comments
#includeusing namespace std; const int SIZE = 5; void print(int []); int findSmallest(int []); int main() { int arr[SIZE] = {4,3,2,15,22}; int smallest = 0; //write statement to call print function passing the array arr smallest = findSmallest(arr); // write statement to display value of smallest value of array. cout << endl; return 0; } //print the array using pointer notation void print(int *ptrArray) { // Write a for loop to print all elements of the array. // You must use the pointer ptrArray declared in the // function header // Separate out the values with a blank. } //find smallest value in an array using pointer notation int print(int *ptrArray) { int small; // Write for loop through the array and find the smallest // value in the array and set it to variable small // write statement to return small }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
