Question: Write a C++ program to create a singly linked list and perform the following operations: 1.Create n nodes using a function. 2.Traverse the linked list
Write a C++ program to create a singly linked list and perform the following operations:
1.Create n nodes using a function.
2.Traverse the linked list and display its elements using a function.
3.Sum the nodes using a function
4.Count and display the number of nodes using a function
5. Compute the average using a function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
