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

Function Append

Arrays/31_Menu_for_Array.c:66–78  ·  view source on GitHub ↗

Append Function

Source from the content-addressed store, hash-verified

64
65//Append Function
66void Append(struct array *arr,int x)
67{
68 int i;
69 if(arr->length<arr->size)
70 {
71 arr->A[arr->length]=x;
72 arr->length++;
73 }
74 else
75 {
76 printf("The array has no empty space to append");
77 }
78}
79
80//Insert Function
81void Insert(struct array *arr,int index,int x)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected