So it's almost as if functions really are useless because they have no ultimate effect.
所以几乎是函数是没起作用的,因为它们没有最终的效果。
int A Well, one, function has called swap, takes one int called A, printf followed by another int called B, and as we've seen with print F, if you have multiple arguments, you separate them by commas.
好的,函数叫做swap,一个参数是,另一个参数是int,B,我们看到的,如果你有好几个参数,把它们用逗号分开。
Inside of swap itself, I'm printing out the values, if temporarily.
在swap函数里,我打印出,它们的值,如果临时的。
I have to change the prototype of this function to say that swap no longer takes an int per se or another int per se, but rather it takes two pointers, two ints, and in fact, it's on the very last page if you're still flipping.
我改变了这个函数的原型,来说明swap不再携带那两个int数本身,而是携带两个指针,两个整型数指针,实际上,它是在最后那页上。
应用推荐