Final answer:
To add a new element e to the end of a non-empty linked list, we create a new node and set the last node's next reference to the new node, then update the last reference to the new node.
Step-by-step explanation:
The question is asking how to add a new element e to the end of a non-empty linked list that has node references named first and last. Assuming that the provided linked list uses a standard implementation, the following statement can be used to add an element to the end:
last.next = new Node(e);
last = last.next;
Here, we first create a new node that will be the last in the list and set the next reference of the current last node to point to this new node. Then, we update the last reference to reflect that our new node is now the last in the list.