The temperature though at two is the same as it was at one, T1 so it's still a temp at T1, and this temperatures is at T2.
但是2和3的温度,是相同的,这是,这是T2,。
tmp The idea was to make a copy of res and temp.
也就是。
temp = *a This line of code here, temp gets *a.
这一行代码。
In temp. So that means at the end of that first line of code just as before the value of 1 ends A up in a variable called temp because we said go to A and I look around, oh, there's A, what's there?
在temp中,在第一行代码的末尾,值1最终到了叫做temp的变量中,因为我们指明了定位到,并且四处查看,哦,这里是A,里面是什么?
So A gets 1, B gets 2, now the swap function itself starts executing line by line; so I declare a chunk of memory called temp.
所以A等于1,B等于2,现在swap函数自己开始,一行一行地执行,所以我声明了,叫做temp的一块内存。
Y He's not returning A or B or temp, and definitely not X or Y; so he just did all of this work and yet that's it.
他不会返回A或B或temp,肯定也不是X或;,所以他刚才做了所有的工作,就是那样。
No. Because A and B and even temp they were by nature local or temporary variables.
不会,因为a和b还有temp,他们是局部的,临时的变量。
temp It has A, it has B, and then it also has temp.
有A,有B,然后还有。
应用推荐