Removing the last element from an array

A simple example of removing the last element from an array.