Skip to content

Conversation

@kamendov-maxim
Copy link
Owner

No description provided.

scanf("%d", &size);
}

int *bubbleSortArray = malloc(size * sizeof(int));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Память выделяется, но нигде не освобождается

return 0;
}

int buffer;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Неинициализированная переменная (и объявленная раньше времени), минус балл :)

Comment on lines +109 to +113
if (!testBubbleSort())
{
return false;
}
return true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!testBubbleSort())
{
return false;
}
return true;
return testBubbleSort();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants