SMN DSA File
SMN DSA File
CODE:
OUTPUT:
Q2) WAP to Sort an array using menu driven:
CODE:
OUTPUT:
Q3) WAP to implement a Singly Linked List.
CODE:
OUTPUT:
Q4) WAP to implement a circular linked list
CODE:
OUTPUT:
Q5) WAP to implement doubly linked list.
CODE:
OUTPUT:
Q11) WAP to search and display the location of an element specified
by the user, in an array using (i) Linear search (ii) Binary search
technique.
CODE:
OUTPUT:
Q13) WAP to implement polynomial addition operation using linked
list.
CODE:
OUTPUT:
Q14) Write a C program to create two linked lists from a given list in
following way:
Input list- 1 2 3 4 5 6 7 8 9 10
Output:
First List: 1 3 5 7 9
Second list: 2 4 6 8 10
CODE:
OUTPUT:
Q15) WAP to implement Student Database using Linked List with the
following structure:
● Name
● Rollno
● Marks of 5 subjects
● Average
● Result, if the average < 50, then print ‘FAIL’, otherwise, ‘PASS’
CODE:
OUTPUT: