Should functions avoid multiple writes to the output variables?

前端 未结 0 1246
生来不讨喜
生来不讨喜 2020-11-30 02:39

In general should a C/C++ function that takes output parameters only write to them at the end of the function? A function actively using output parameters could cause false

相关标签:
回答
  • 消灭零回复
提交回复
热议问题