| 75 | */ |
| 76 | |
| 77 | void deletion(int arr[], int size, int index) |
| 78 | { |
| 79 | for (int i = index; i < size - 1; i++) |
| 80 | { |
| 81 | arr[i] = arr[i + 1]; // Shift the element for deletion so that the value of element at that index acquire the value of next index |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | //--------------------------------------------------------------------------------------------------------------------------------------- |
| 86 |