I am supposed to use pointers to swap ints in an array. It compiles with no errors or warnings and runs but does not swap the ints. Any suggestions would be helpful!!!
I hate spoiling this but it looks like a typo more than anything.
In your swap function:
*ary = temp;
should be:
*(ary + 1) = temp;
edit: Is there a reason you're not using array notation? I think it's a bit clearer for things like this:
int temp = ary[0]; ary[0] = ary[1]; ary[1] = temp;