dsc singly linked list program

Upload: gouse1210

Post on 01-Jun-2018

230 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 DSC Singly Linked list Program

    1/3

    Lab: Data Structures Lab Roll no:

    Program/Exp.no: Sheet no:

    Date:

    Name of the Program:week1

    eek1: Write a C program that uses functions to perform the following:a) Create a singly linked list of integers.

    b) Delete a given integer from the above linked list.c) Display the contents of the above list after deletion.

    #include

  • 8/9/2019 DSC Singly Linked list Program

    2/3

    Lab: Data Structures Lab Roll no:

    Program/Exp.no: Sheet no:

    Date:

    Name of the Program:week1

    ne+t&first" while!c

  • 8/9/2019 DSC Singly Linked list Program

    3/3

    Lab: Data Structures Lab Roll no:

    Program/Exp.no: Sheet no:

    Date:

    Name of the Program:week1

    enter data7

    enter the position72811251156117112.create5.delete6.display7.e+it enter your choice5

    enter position:6

    deleted element is 56281125117112.create5.delete6.display7.e+it enter your choice5

    enter position:6

    deleted element is 7281125112.create5.delete6.display7.e+it enter your choice5

    enter position:2

    deleted element is282511

    2.create5.delete6.display7.e+it enter your choice5

    enter position:2deleted element is25list empty