Processing the array

Once the array has been declared, the doSomething function executes the code in Listing 2 to process the array.