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

Function main

CPP/sorting/Cocktail Sort.cpp:64–72  ·  view source on GitHub ↗

Driver code

Source from the content-addressed store, hash-verified

62
63// Driver code
64int main()
65{
66int arr[] = { 5, 1, 4, 2, 8, 0, 2 };
67int n = sizeof(arr) / sizeof(arr[0]);
68CocktailSort(arr, n);
69printf("Sorted array :\n");
70printArray(arr, n);
71return 0;
72}

Callers

nothing calls this directly

Calls 2

CocktailSortFunction · 0.85
printArrayFunction · 0.70

Tested by

no test coverage detected