The var ious opera t i on i n s ing ly l i nked l i s t a re
1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it
Ente r your cho i ce
1: Ente r the e lement : 12 Do u want to con t inue? (y /n )y
Ente r the e lement : 23
Do u want to con t inue? (y /n )y
Ente r the e lement : 34
Do u want to con t inue? (y /n )y
Ente r the e lement : 45
Do u want to con t inue? (y /n )n The s ing ly l i nked l i s t i s c rea ted
The var ious opera t i on i n s ing ly l i nked l i s t a re
1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it
Ente r your cho i ce :2
12- >23->34->45->Nu l l
The var ious opera t i on i n s ing ly l i nked l i s t a re
1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it
Ente r your cho i ce :3
Ente r the e lement to sea rch 23: I t i s presen t
1 | Page singly LL –o/p
The var ious opera t i on i n s ing ly l i nked l i s t a re 1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it
Ente r your cho i ce
4: Ente r the e lement a f te r which you want you i n se r t ? 12 Ente r the e lement which you want to i n se r t56 : The e lement i s i n se r ted
The var ious opera t i on i n s ing ly l i nked l i s t a re
1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it
Ente r your cho i ce :5
Ente r the e lement you want to de le te :56 I t i s presen t The data i s de le ted
The var ious opera t i on i n s ing ly l i nked l i s t a re
1 .C rea te 2 .D i sp lay 3 .Sea rch f o r an i t em 4 . Inse r t an e lement f rom an l i s t 5 .De le te an e lement l 6 i s.Qu t it