MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / deletion

Function deletion

A-Array/arrayOperations.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75*/
76
77void 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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected