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

Function main

Arrays/05_inserting_an_element.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int main() {
37 int no;
38 struct Array arr;
39 cout << "Enter the size of the array " << endl;
40 cin >> arr.size;
41 arr.A = new int[arr.size];
42 arr.length = 0;
43 cout << "Enter the length of array" << endl;
44 cin >> no;
45 cout << "Enter all the elements of array" << endl;
46 for (int i = 0; i < no; i++)
47 cin >> arr.A[i];
48 arr.length = no;
49 Add(&arr, 10);
50 Insert(&arr,3,25);
51 Display(arr);
52
53 return 0;
54}

Callers

nothing calls this directly

Calls 3

AddFunction · 0.85
InsertFunction · 0.70
DisplayFunction · 0.70

Tested by

no test coverage detected