1) Create a linked list that stores integer values.
Write a function that does the following:
● Accepts an integer value from the user
● Adds the integer value to the end of the linked list
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in the order they are entered by the user.
2) Modify your linked list created in 1 to do the following
● Accepts an integer value from the user
● Adds the integer value into the linked list in sorted order (ascending)
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in ascending sorted order.
The sorting should be done during insertion of each integer into the linked list, not explicitly.
I need help 2 these problems,i do a lot of example in c to imrprove my c but i'm just a beginner right now,if you help me i will pleasent thx anyway.
Write a function that does the following:
● Accepts an integer value from the user
● Adds the integer value to the end of the linked list
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in the order they are entered by the user.
2) Modify your linked list created in 1 to do the following
● Accepts an integer value from the user
● Adds the integer value into the linked list in sorted order (ascending)
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in ascending sorted order.
The sorting should be done during insertion of each integer into the linked list, not explicitly.
I need help 2 these problems,i do a lot of example in c to imrprove my c but i'm just a beginner right now,if you help me i will pleasent thx anyway.