
476 Programming and Data Structures
ends. In this case, due to lack of space, insertion operation is impossible.
The position number where an element is to be inserted and the element are prompted by the
program. After the user enters these values, using while loop, the position of the first vacant location
is determined. From user specified, position number, next all successive elements are shifted one
memory location towards down side of array. Due to this shifting, space is generated and the entered
element is placed at that location.
14.8 DELETION
Like insertion, deletion of an element can be done from the list. In deletion, the elemen