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

Method Delete

Arrays/18_Menu_Based_problem.cpp:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76}
77int Array::Delete(int index)
78{
79 int x=0;
80 int i;
81
82 if(index>=0 && index<length)
83 {
84 x=A[index];
85 for(i=index;i<length-1;i++)
86 A[i]=A[i+1];
87 length--;
88 return x;
89 }
90
91 return 0;
92}
93void Array::swap(int *x,int *y)
94{
95 int temp;

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected