diff --git a/CPP/data-structures/ll.cpp b/CPP/data-structures/ll.cpp new file mode 100644 index 0000000..b643bfd --- /dev/null +++ b/CPP/data-structures/ll.cpp @@ -0,0 +1,19 @@ +#include +#include "LinkedList.h" + +void printll() +{ + if(head==NULL) + { + cout<<"Empty List"; + return; + } + else{ + temp=head; + while(temp!=NULL) + { + cout<data<<" "; + temp=temp->next; + } + } +}