void sortThree(int *a, int *b, int *c);
{
int swap = 0;
if (*c < *b)
{
swap = *c;
*c = &b;
*b = &c;
}
Type: Posts; User: slotown
void sortThree(int *a, int *b, int *c);
{
int swap = 0;
if (*c < *b)
{
swap = *c;
*c = &b;
*b = &c;
}
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
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...