
The C file can be compiled using gcc with

 % gcc -o arrays arrays.c

and then run as

 % ./arrays

The perl file can be run using

 % perl arrays.pl

