Build link list

https://ide.codingblocks.com/s/208108 i had just created 2 link using same build function but used 2 different pointers for both the list and when i am printing them it is giving garbage value

Hi @Learning_bunny,
in ur constuctor, use data=d instead of d=data. ur code will work fine

it worked fine thankyou bhaiya