Create a structure for link list and insert two nodes in it(write the code). (Since i know STL as well, first i coded it in C and then used STL as well)
AnswerBot
1y
Create and insert nodes in a linked list using C and STL.
Define a struct for the linked list node
Allocate memory for the nodes using malloc or new
Set the data and next pointer for each node
Use push_ba...read more
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app