I tried both C and C++ and both work fine.
I'm new to pointer functions, and here is a simple code that surprised me:
So what's the difference between
sort_ptr( arr1, 5 );
and
(*sort_ptr)( arr2, 5 );
Both seem to work (no errors, no warnings, sorted arrays), and I'm a bit confused. Which one is correct, or are both correct?
Kiril Kirov
source share