Unable to Print the LinkedList

I wrote code for printing LinkedList, but instead of printing the elements it’s printing the address
Below is the link to my code:

cout<<head->next<<" ->"
print head->data not next
if this resolves your doubt please mark it as resolved :slight_smile: