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

Function Get

Arrays/31_Menu_for_Array.c:242–252  ·  view source on GitHub ↗

Get Function

Source from the content-addressed store, hash-verified

240
241//Get Function
242void Get(struct array arr,int index)
243{
244 if(index>=0 && index<arr.length)
245 {
246 printf("The number at given index is %d\n",arr.A[index]);
247 }
248 else
249 {
250 printf("The given index is not valid");
251 }
252}
253
254//Set Function
255void Set(struct array *arr,int index,int x)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected