Regarding the linked list

why u have return head u newnode (d) , why u have return d inside the bracket i am not understaning this and in many more u have done like this i am confusing and int d is also written in bracket in
the insertion

Hey @ssmit_joshi
I am reffering to this code

Now go to this URL
and tell me the number of lines u aren’t able to understand

According to me so far u arent able to understand is line 18 of code

   head =new node(d);//dynamic memory alllocation

Here see constructor of our class will accept argument so that’s why we are sending d here as argument .

Now here in this discussion only let me know the line nos u arent able to understand

https://codeshare.io/5QDyle