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

Function printArr

CPP/sorting/heap_sort.cpp:44–51  ·  view source on GitHub ↗

function to print the array elements */

Source from the content-addressed store, hash-verified

42}
43/* function to print the array elements */
44void printArr(int a[], int n)
45{
46 for (int i = 0; i < n; ++i)
47 {
48 cout<<a[i]<<" ";
49 }
50
51}
52int main()
53{
54 int a[] = {47, 9, 22, 42, 27, 25, 0};

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected