Skip to content

Instantly share code, notes, and snippets.

@tanaytoshniwal
Last active August 18, 2019 20:05
Show Gist options
  • Save tanaytoshniwal/6acc0d5be12ac135a5397075ccaf4a13 to your computer and use it in GitHub Desktop.
Save tanaytoshniwal/6acc0d5be12ac135a5397075ccaf4a13 to your computer and use it in GitHub Desktop.
Linked List Printing Function
void print(Node* head){
if(head==NULL){
return;
}
Node* temp = head;
while(temp != NULL){
cout << temp->data << " ";
temp = temp->next;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment