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

Function Set

Arrays/31_Menu_for_Array.c:255–265  ·  view source on GitHub ↗

Set Function

Source from the content-addressed store, hash-verified

253
254//Set Function
255void Set(struct array *arr,int index,int x)
256{
257 if(index>=0 && index<arr->length)
258 {
259 arr->A[index]=x;
260 }
261 else
262 {
263 printf("The given index is not valid");
264 }
265}
266
267//Max Function
268void Max(struct array arr)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected