if temp->data prints the value in the node, can head->data print too?
If yes, why do we create a temporary variable?