class Node { public: int data; Node* next; }; Node *head; head=NULL; int main() { Node *temp= new Node; temp->data=5; temp->next=NULL; head=temp; cout << "head->data= "<<head->data<<" head->next= "<<head->next; return 0; }
Node *head=NULL;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)