Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Sorting/Bubble Sort/C/BubbleSort.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ void printArray(int arr[], int size)
int main()
{
int arr[] = {6, 4, 5, 8, 2, 1, 9};
int n = sizeof(arr)/sizeof(arr[0]);
scanf("%d",&n);
int n = sizeof(arr)/sizeof(arr[0]);
bubbleSort(arr, n);
printArray(arr, n);
return 0;
Expand Down