This week you will be implementing some functions that use pointers.
We have given you code in main, which calls some functions.
Stage 1: (1 Point) (Two parts)
a) Implement functions readInValues(int someArray[]) which will read the user entered values into a variable.
b) Implement the function displayArray(int* someArray) which will display the contents of the array.
Running Check 1 would look like:
Enter 3 numbers: 2 3 4
Enter 3 numbers: 4 5 6
The array One is : 2 3 4
The array Two is : 4 5 6
Stage 2: (1 Point)
Implement function getBiggestElement(...) which takes an array and returns the biggest element in the array
Running the program would look like:
Enter 3 numbers: 2 3 4
Enter 3 numbers: 4 5 6
The array One is : 2 3 4
The array Two is : 4 5 6
The biggest element in array is: 4
The biggest element in array is: 6
Stage 3: (1 Point)
Using the results of the previous functions, write function findBiggest(...) which takes the two arrays and returns a pointer to the array containing the biggest element.
Running the program would look like:
Enter 3 numbers: 2 3 4
Enter 3 numbers: 4 5 6
The array One is : 2 3 4
The array Two is : 4 5 6
The biggest element in array is: 4
The biggest element in array is: 6
The array with the biggest numbers contains: 4 5 6