This question was closed as exact duplicate since I chose a misleading question title. It was not wrong but suggested an issue often discussed, e.g. in this question. Since
Pass in the arguments by reference so you can change them without returning or return a struct. You can only return a single value from a function.