From 4e6d627a34d2cf7f5fcbe39ebae989e08cd01ea3 Mon Sep 17 00:00:00 2001 From: Siddharth Batra Date: Mon, 1 Oct 2018 00:30:41 +0530 Subject: [PATCH] Create ll.cpp --- CPP/data-structures/ll.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CPP/data-structures/ll.cpp 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; + } + } +}