Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quicksort cpp #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

quicksort cpp #81

wants to merge 2 commits into from

Conversation

deepanshuv23
Copy link

@deepanshuv23 deepanshuv23 commented Oct 30, 2017

Fixes #

Checklist

  • I have read the [Contribution Guide] and my PR follows them.
  • My branch is up-to-date with the master branch.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • The contents added are completelt original and have no copyright issues.

Short description of what this resolves:

Changes proposed in this pull request:

int i;
for (i=0; i < size; i++)
printf("%d ", arr[i]);
printf("n");

Choose a reason for hiding this comment

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

Why this is 'n' is printed in the end?

int arr[] = {10, 7, 8, 9, 1, 5};
int n = sizeof(arr)/sizeof(arr[0]);
quickSort(arr, 0, n-1);
printf("Sorted array: n");

Choose a reason for hiding this comment

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

Why this is 'n' is printed in the starting of array?

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.

2 participants