Search:

Type: Posts; User: slotown

Search: Search took 0.00 seconds.

  1. void sortThree(int *a, int *b, int *c); { ...

    void sortThree(int *a, int *b, int *c);
    {
    int swap = 0;

    if (*c < *b)
    {
    swap = *c;
    *c = &b;
    *b = &c;
    }
  2. I thought that too but being simplistic and...

    I thought that too but being simplistic and optimal is the whole challenge that this is supposed to be and i feel it would be quite a lot of code with those
  3. Sorting variables with an optimized, specific process

    Hello everybody,

    so i'm writing a very simple program where the user inputs 3 ints *a, *b, *c, and there is one function that handles the addresses of the integers and sorts them in ascending...
Results 1 to 3 of 3