MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / Delete

Method Delete

Arrays/17_nsertion_and_Deletion.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65int Array :: Delete (int index)
66{
67 int x=0;
68 if (index>=0 && index <length)
69 {
70 x=A[index];
71 for ( int i=index ; i<length-1; i++)
72 A[i]==A[i+1];
73 length --;
74 }
75 return x;
76}
77int main ()
78{
79 Array arr(10);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected