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!!!
your swap function will work only for 2-ints array, so show it to your compiler (it won't change anything, but make code cleaner)
void swap( int ary[2] )