C - Functions

From EdWiki

Revision as of 09:30, 23 June 2015 by Jshankar (Talk | contribs) (1 revision imported: EdWiki -- Emsys pages from Shukra)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  • 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