C Array
C Array
Ex5: Write a C++ program to compute the average value of an array of integers except the
largest and smallest values.
Ex6: Write a C++ program to arrange the elements of an array of integers so that all negative
integers appear before all positive integers.
Ex7: Write a C++ program to find the maximum product of two integers in a given array of
integers.
Example:
Input :
nums = { 2, 3, 5, 7, -7, 5, 8, -5 }
Output:
Pair is (7, 8), Maximum Product: 56
Ex8: Write a C++ program to check wether the elements of array is sorted or not.