struct Node { int data; Node* next; }; Node* head = new Node(); head->data = 1; head->next = new Node(); head->next->data = 2; head->next->next = nullptr;