B It swaps this one and these two, A and B, but it has no access to main's memory.
它交换了这个和这两个变量,A和,但是它没有介入到main的内存中。
swap If main wants to give access to swap to x and Y, it just has to tell swap where x and y are.
如果main函数想要对x和y使用,只要告诉swap,x和y在哪里。
应用推荐