2
![Code Review](https://cdn.sstatic.net/codereview/img/apple-touch-icon.png)
Most of the code is a driver program. The only really interesting part here is
arr[(*length)++] = data;
and
return arr[--(*length)];
as well as the range-checking. I won't look too closely at the driver code.
My key advice is: Make your data structure reusable. Put it in a header and imple...