fork download
#include 

void print (const int *arr, const int size) {
    for (int i = 0; i < size; ++i)
        std::cout << arr [i] << ' ';
}

int main() {
    const int array[] = {1, 5, 7};
    print (array, sizeof array / sizeof array[0]);
}
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
1 5 7