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

Method Get

Arrays/18_Menu_Based_problem.cpp:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 return -1;
130}
131int Array::Get(int index)
132{
133 if(index>=0 && index<length)
134 return A[index];
135 return -1;
136}
137void Array::Set(int index,int x)
138{
139 if(index>=0 && index< length)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected