Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the reason for returning the head in a function that adds a node to the end of a linked list? Is there a specific reason why we do not need to do the same for arrays when performing a similar operation?