#include <stdio.h> extern void add_array_(int[], int *); int main(){ int i; int length = 10; int array[length]; for( i = 0; i < length; i++ ){ array[i] = i + 1; } printf( "Before: \n" ); for( i = 0; i < length; i++ ){ printf( "%d ", array[i] ); } printf( "\n" ); add_array_( array, &length ); printf( "After : \n" ); for( i = 0; i < length; i++ ){ printf( "%d ", array[i] ); } printf( "\n" ); return 0; }