How can one swap pointer addresses within a function with a signature?
Let\'s say:
int weight, height; void swap(int* a, int* b);
S
If you want to change address of pointers then you have to pass pointers of those pointers as your parameters:
void swap(int **a, int **b); //as prototype
Those examples are just changes values of pointers.