MCPcopy Create free account
hub / github.com/anupam-kumar-krishnan/Competitive_Programming / main

Function main

Basic Programming/BubbleSort.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42int main() {
43 int unsortedArr[7] = {3, 7, 2, 8, 1, 0, 9};
44 int size = sizeof(unsortedArr)/sizeof(unsortedArr[0]);
45
46 cout<<"Unsorted Array : ";
47 printArr(unsortedArr, size);
48
49 int *sortedArr = bubbleSort(unsortedArr, size);
50 cout<<"Sorted Array : ";
51 printArr(sortedArr, size);
52
53 return 0;
54}

Callers

nothing calls this directly

Calls 2

printArrFunction · 0.70
bubbleSortFunction · 0.70

Tested by

no test coverage detected