STD XII Prac Programs
STD XII Prac Programs
iv) search
iv) sort
bubble sort technique(sort in ASCENDING order).
v) show
Write a relevant main function to complete the Program.
iv) sort
selection sort technique (sort in ASCENDING
order).
v) show
array.
Write a relevant main function to complete the program.
4. Define a class named INSERT consisting of the following members:
i) list: an array of type short integer of size 30 under private visibility label.
ii) N : of type short unsigned integer(indicates total number of elements to be accepted
iv) sort
insertion sort technique (sort in ASCENDING order).
v) show
Write a relevant main function to complete the program.
iv) product
9. Write a menu driven program to implement a stack using singly linked list in which each
node consists of a single data field of type character and performs the following operations:
i) push a node onto the stack
ii) pop the top node from the stack
Displaying data field of all the nodes in the stack horizontally.
10. Write a menu driven program to implement a queue using singly linked list in which each
node consists of a single data field of type character and performs the following operations:
i) Appending a node into the queue.
ii) Deleting the first node in the queue.
Displaying data field of all the nodes in the queue horizontally.