Cursor Implementation of Linked List Free Project

Cursor Implementation of Linked List Free Project Coding:

To see the algorithm and further details are explained in the post : Cursor Implementation Of Linked List BSc Diploma Project.

As I said in the post Cursor implementation of linked list Algorithm, we need to create a header file, “cursorlist.h” and then include that in the main function of “cursorlist.c”.

C Program for Cursor Implementation of Linked List:

“cursorlist.h” file :

Now lets see the main coding…

“cursorlist.c” file:

Now compile both coding. While running cursorlist.c file, the output generated will be similar to that of the following output.

OUTPUT: 
1.Create List
2.Insert Data
3.Delete Data
4.MakeListEmpty
5.Display List
6.Find Position
7.Exit

Enter Your choice of to perform  operation: 1
Enter Your choice of to perform  operation: 5
0 0 2
1 -1 -1
2 0 3
3 0 4
4 0 5
5 0 6
6 0 7
7 0 8
8 0 9
9 0 -1
Enter Your choice of to perform  operation: 2
Where do you want to insert? 1
Enter the element to insert: 100
Enter Your choice of to perform  operation: 5
0 0 3
1 -1 2
2 100 -1
3 0 4
4 0 5
5 0 6
6 0 7
7 0 8
8 0 9
9 0 -1
Enter Your choice of to perform  operation: 2
Where do you want to insert? 2
Enter the element to insert: 200
Enter Your choice of to perform  operation: 2
Where do you want to insert? 3
Enter the element to insert: 300
Enter Your choice of to perform  operation: 5
0 0 3
1 -1 2
2 100 -1
3 200 4
4 300 5
5 0 6
6 0 7
7 0 8
8 0 9
9 0 -1
Enter Your choice of to perform  operation: 6
Which element you want to search? 200
The element is at 3
Enter Your choice of to perform  operation: 3
Which element you want to delete: 200
Enter Your choice of to perform  operation: 5
0 0 3
1 -1 2
2 100 4
3 0 5
4 300 -1
5 0 6
6 0 7
7 0 8
8 0 9
9 0 -1
Enter Your choice of to perform  operation: 15
************You have entered wrongly********
Enter Your choice of to perform  operation: 7

Try the above coding….
If you find any difficulty while running the above code, please let me know through your comments…

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *