C++ min
#include <iostream>
#include <algorithm>
int main() {
// Declare an array of integers
int numbers[] = {5, 2, 8, 1, 6};
// Determine the size of the array
int size = sizeof(numbers) / sizeof(numbers[0]);
// Use the std::min_element function to find the minimum element in the array
int *minElement = std::min_element(numbers, numbers + size);
// Output the minimum element
std::cout << "The minimum element in the array is: " << *minElement << std::endl;
return 0;
}