If pass-by-reference is used, this gives the same result as the C++ expample:
If value-result is used, the results depend on which parameter is returned last. If done left-to-right, so NB is returned last, we get:
If NA goes last, the last value is 13. This is because NA and NB are not alaises during the execution, each with an initial value of 10.