In C++
Implement the member function void insertAfterHead(int d) of theLinkedList class. The job of the function is to insert a new nodewith data d right after the head node. Your header will be
void LinkedList::insertAfterHead(int d)
The function does nothing if called on an empty list.
Expert Answer
An answer will be send to you shortly. . . . .