this is link of my program linklist and
line number 18 error come
tell what error i done
(without changing the flow of prgram what i done)
Single link list program(by class)
Hi @khemchandrs
Error in your program is because of *tail->next=newNode;. Here tail is a pointer so when you are you are trying to access its next it is showing error. Your have to replace this line with (*tail)->next=newNode; because in this way you are dereferencing the tail pointer and then accessing its next pointer.