Truly deleting an array element

By now, you are probably as disappointed with the delete operator as I was. However, my experiment reveals that you can actually decrease the length property of an array, effectively deleting the last element. Consider the code in Listing 6.