Search:

Type: Posts; User: camel-man

Search: Search took 0.01 seconds.

  1. Yes, as well as one before return 1, or you could...

    Yes, as well as one before return 1, or you could have a memory leak.
  2. Ahh ok, I thought he was trying to actually sort...

    Ahh ok, I thought he was trying to actually sort the array from beginning.
  3. Why are you comparing to array[i-1] why not just...

    Why are you comparing to array[i-1] why not just i? You're also scanning back to back which I doubt you mean to do.
  4. Variable is your new allocated array.

    Variable is your new allocated array.
  5. Scanf("%d",&n); int...

    Scanf("%d",&n);
    int *variable=malloc(n*sizeof(int));
Results 1 to 5 of 5