Return several arguments for another function by a single function

前端 未结 6 1984
余生分开走
余生分开走 2021-01-03 05:31

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

6条回答
  •  Happy的楠姐
    2021-01-03 05:44

    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.

提交回复
热议问题