return的作用

(1)终止函数的执行。

(2)返回到调用的地方。

(3)返回值。

原文地址:https://www.cnblogs.com/wanerhu/p/10693060.html