Ask a question about a function

Source: Internet
Author: User
Ask a function question
Is there any difference between the return value and no return value of the master definition function??

------Solution--------------------
It is generally customary to add return values such as return FALSE. To make sure that the program failed to invoke success.
------Solution--------------------
Look at this person, but generally a function is to process data or other, there will be a return value, even if there is no specific data returned, will also return a true or false, to confirm that the function is executed successfully
------Solution--------------------
If there is a return value, you can use the return value to determine the result of your function's processing.
For example, inserting a piece of data, is the insertion successful? The return value can help you to judge and give the correct handling and hints in the subsequent program.
------Solution--------------------
The general execution is to have the return value, either return the specific data or Boolean value, the Boolean value can be used for the next judgment
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.