void print_int(int arg) { printf("%d\n", arg); }
int f(int* array, int size) {
for (int i = 0; i < size; i = i + 1)
print_int(array[i]);
}
int g(int* array, int* limit) {
for (int* current = array; current < limit; current = current + 1)
print_int( *current );
}
int main() {
int array[] = { 1, 2, 3, 4, 5 };
f( array, 5 );
g( array, array + 5);
return 0;
}