1 2 3 4 5 6 7
#include <iostream> void output(int *arr,const int size) { for (int i = 0; i < size; i++) std::cout << arr[i] << std::endl; }