Write complete C++ code to display numbers larger than n in an array. In your code, write a function that accepts three arguments: an array, the size of the array, and a number n . Assume that the array contains integers. Call the function from main in your code. The function should display all of the numbers in the array that are greater than the number n . You could use a named constant for the value of n or collect it from the user. In main declare an array using an initialization list.
Sample output is:
Numbers greater than 4 in the array are: 5, 17, 10, 12
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here