Skip to content

Latest commit

 

History

History

Exp_10

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Programs and Output for Experiment 10.

queue_array.c - Implementation of queue using array.

Queue
1. Insert 2. Delete 3.Display 4.Exit 
1
Item to be entered : 59

1. Insert 2. Delete 3.Display 4.Exit 
1
Item to be entered : 60

1. Insert 2. Delete 3.Display 4.Exit 
3

 Queue :59 60 
1. Insert 2. Delete 3.Display 4.Exit 
2
The deleted item is 59
1. Insert 2. Delete 3.Display 4.Exit
1
Item to be entered : 61

1. Insert 2. Delete 3.Display 4.Exit
3

 Queue :60 61
1. Insert 2. Delete 3.Display 4.Exit
2
The deleted item is 60
1. Insert 2. Delete 3.Display 4.Exit
4

queue_linked_list.c - Implementation of queue using linked list.


1. Insert 
2. Delete
3. Display
4. Quit
Enter your Choice : 1

value to be inserted:50

1. Insert 
2. Delete
3. Display
4. Quit
Enter your Choice : 1

value to be inserted:51

1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 3
50 --> 51
1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 2

1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 3
51
1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 1

value to be inserted:52

1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 3
51 --> 52
1. Insert
2. Delete
3. Display
4. Quit
Enter your Choice : 4