Can anyone explain the usage of return?
小圈圈~
小圈圈~ 2017-11-17 10:55:26
0
7
1955

Just like the homework said, what does it mean to return the string of the table? Can this value be called? There is my code in the notes. Is this return correct?

小圈圈~
小圈圈~

reply all(5)
又白又帅又可爱

The best understanding of using functions in programming: http://blog.csdn.net/xiaowu12345678910/article/details/78255055#t4

phpcn_u33708

return is just a return execution result. Where should the result be returned every time a method is written?

victory!

Put it inside the method and return the result of method execution when called

nearest

return is used to return a value, or stop running subsequent statements. That is, after you call this function, you can get the return data.

  • reply So what is the purpose of the string returned in the table in this chapter's homework?
    小圈圈~ author 2017-11-17 15:50:48
尹天雄

The literal meaning is to return.

Return in a function can return the execution result of the function. If there is no return, NULL is returned. Statements after return are no longer executed.

  • reply So what is the purpose of the string returned in the table in this chapter's homework?
    小圈圈~ author 2017-11-17 15:50:55
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template