Posted By: NeoNeper
External variable in the function parameter - 10/27/13 14:41
Code:
var vTemp = 0; void getValue(var value) { value = 10; } ... getValue(vTemp);
...
How can I modify the global variable specified in a function parameter?
var vTemp = 0; void getValue(var value) { value = 10; } ... getValue(vTemp);
var vTemp = 0; void getValue(var *value) { *value = 10; } ... getValue(&vTemp);
*value = 10; // I did not know I could declare this way