MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / main

Function main

S-SortingAlgorithms/ShellSort.cpp:61–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61int main()
62{
63 //Test case { 13, 20, 5, 27, 67, 72, 20, 89, 12, 18, 100 }
64
65 int numberOfElements;
66 cout << "Please enter the number of elements of the array: ";
67 cin >> numberOfElements;
68 cout << endl;
69
70 int * arr = takeArrayFromUser(numberOfElements);
71 cout << endl << "Array Before Sorting: ";
72 printArray(arr, numberOfElements);
73
74 shellSort(arr, numberOfElements);
75
76 cout << endl << "Array After Sorting: ";
77 printArray(arr, numberOfElements);
78}

Callers

nothing calls this directly

Calls 3

takeArrayFromUserFunction · 0.85
shellSortFunction · 0.85
printArrayFunction · 0.70

Tested by

no test coverage detected