All Linked list operation

I am trying to write a code which can perform all the linked list operation. But I am facing a problem when I am trying to insert data at the end of the linked list.
Can you please look into my code and tell me where am I going wrong?

Ps: I am running this code offline on code blocks ide.

hello @div_yanshu07 ,

image

here it should be last->next!=NULL


I am now trying to create a function that will let you insert an element in the linked list wherever you want but when I print it problem occurs. Why?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.