Importance of function prototype Definition

Source: Internet
Author: User

InProgramDuring the design, the most important definition of the function prototype was not completed.

For the flexibility and maintainability of the program, many subprograms are designed during the development process to implement an independent part of the content, and then various subprograms are combined by function calling, to implement a complete program.

This can indeed bring a lot of convenience, but it is worth noting that in order to be able to enjoy this convenience, we need to spend a lot of time defining the function prototype in the early stage so that the function prototype can be as perfect as possible, and we do not want to change the prototype of a function during later development. Because of the prototype of a function, after the definition is complete, it is an interface for other functions that call it. When a defined function interface is called in large quantitiesCodeWhen a program with high maintainability and flexibility is reused, if the prototype definition is found to be faulty, the overhead of modifying the function prototype will reach an unacceptable level.

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.