Change Value of Variable in Function in C
This question already has an answer here:
In your function a is passed by value not by reference, so the x value will no tb e changed. While b is passed by reference, so value of y is changed.
链接地址: http://www.djcxy.com/p/20618.html上一篇: 通过值传递和在PHP中传递引用
下一篇: 在C中改变函数中变量的值