passing int array to c