Assume that the node of a linked list is in the usualinfo-linkform with theinfoof the type ofint. The following data, as described in parts (a) to (d), is to be inserted into an initially linked list:72,43,8,12. Suppose thatheadis a pointer of typenodeType. After the linked list is created,headshould point to the first node of the list. Declare additional variables as you need them. Write the C++ code to create the linked list. After the linked list is created, write a code to print the list. What is the output of your code?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here