Having doubt at functions parameters in linked list

please explain the insertion part of linked list one more time because I’m getting confused with the function parts


it has 3 steps

  1. allocate node with the data Node* n = new Node(data);
  2. Make next of new node as head n->next = head ;
  3. move the head to point to the new node head = n;