Both should work the same, in that the function can modify the value, their speed should also be the same due to compiler optimization.