I'm doing a searching for swapping two nodes of linked list and found out a block of code as follow:
void swapNode(call * &head, call * &first, call * &second) {
// swap values, assuming the payload is an int:
int tempValue = first->value;
first->value = second->value;
second->value = tempValue;
}
My question is what the meaning for put the ampersand after asterisk?