Can anyone give me a hint?
I'm doing Pset5, and I can't seem to come up with an answer for "Why do you think we pass before and after by reference (instead of by value) to calculate, even though we’re not changing their contents?" in questions.txt (question 3.).
The calculate function is always used as it's return value is assigned to a variable. So there should be no problem by passing it by value. So then why pass by reference?
Edit: Wait. Is it only because it takes less steps? Meaning you don't have to pass a copy but directly doing the calculations via the adresses?