The end() function moves the internal pointer to, and outputs, the last element in the array.
Output the value of the current and the last element in an array:
Run Example>>