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

Method Reverse

Arrays/18_Menu_Based_problem.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 return (float)Sum()/length;
176}
177void Array::Reverse()
178{
179 int *B;
180 int i,j;
181 for(i=length-1,j=0;i>=0;i--,j++)
182 B[j]=A[i];
183 for(i=0;i<length;i++)
184 A[i]=B[i];
185
186}
187void Array::Reverse2()
188{
189 int i,j;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected