Taking Input In Linked List

I didn’t understand the video ,i.e how to take input in the linked list?

@Gurjot whats the issue which one?

Video name: Linked list 06: taking input

@Gurjot i mean which part you are not understanding in this

@Gurjot sir have just done a while loop
like jab tak tum -1 nahi input karoge toh insert hota rahega input

as head is not initialized in the take input function,then what will we passed to the insert at head function.
And what will be returned when the return head statement hits.

Wait let me check will tell you in some time

@Gurjot head is null in the take input and we are building the linklist inside it.
once build we return the head as through it we can access the linklist

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.