Now I don't know what the locations are so let's just arbitrarily come up with some memory addresses.
现在我不知道那个地址是什么,让我们任意的采用一些地址。
Now, again, what's the address?
现在,那个地址是什么?
So, now we have said go to the address stored in X, which is who knows, it's over there, put the number 42 there so what I've just drawn is this part of this story here.
那么,现在我们指明定位到存储在x中的地址,那就是把数字42放在那里,我所画的就是这一部分。
Indeed, swap in your printout there is just defined as now taking *a and *b and then it also uses the * later, but we'll come back to what the different uses of the * means, but for now I claim conceptually it just means swap has access to the locations of its parameters.
的确,在打印资料中的swap被定义为,携带*a和*b,之后它也是带*号的,但是我们将说明*的不同用法,现在,我断言swap可以,使用参数的地址。
应用推荐