I wrote code for printing LinkedList, but instead of printing the elements it’s printing the address
Below is the link to my code:
Unable to Print the LinkedList
cout<<head->next<<" ->"
print head->data not next
if this resolves your doubt please mark it as resolved 