C - Functions

From EdWiki


  • Functions break large computing tasks into smaller ones, and enable people to build on what others have done instead of starting over from scratch.
  • Functions should be designed such that they hide the details of operation from parts of the programs that don’t need to know about them.
  • Functions can occur in any order in the source file, and the source program can be split into multiple files, so long as no function is split.
  • There are three steps involved in functions:
    1. Function declaration/prototyping
    2. Function definition/implementation
    3. Calling/Invoking a function