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

Function main

CPP/sorting/heap_sort.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51}
52int main()
53{
54 int a[] = {47, 9, 22, 42, 27, 25, 0};
55 int n = sizeof(a) / sizeof(a[0]);
56 cout<<"Before sorting array elements are - \n";
57 printArr(a, n);
58 heapSort(a, n);
59 cout<<"\nAfter sorting array elements are - \n";
60 printArr(a, n);
61 return 0;
62}

Callers

nothing calls this directly

Calls 2

printArrFunction · 0.70
heapSortFunction · 0.70

Tested by

no test coverage detected