Not able to print the list.Please check once
Hey @gaganpreetsachdev1
on line 16
void inserthead(node*&head,int d) //&head here
otherwise head remains NULL
Hey @gaganpreetsachdev1
on line 16
void inserthead(node*&head,int d) //&head here
otherwise head remains NULL